UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor rwehbi
Visitor
12,365 Views
Registered: ‎09-20-2007

I need the set of compiler options

Hi,
 
Does any one know where I can find the list of the compiler option used by the XPS9.1i for the PPC405.
 
Regards,
Rami
 
0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
12,360 Views
Registered: ‎08-13-2007

Re: I need the set of compiler options

The default compiler used by XPS for the PPC405 is powerpc-eabi-gcc.
 
To see the possible list of options, type "powerpc-eabi-gcc --help | more" from an EDK shell.
 
You may also find this handy:
http://gcc.gnu.org  (official GCC page)
http://gcc.gnu.org/onlinedocs/  (GCC docs)
 
To see what is currently being used in your project, you can open the <projectname>_incl.make file. Note that the compiler options can be different for each application.
 
To change your compiler options in XPS, select the Applications pane, select the appropriate application, right click -> properties. If the options you want aren't exposed in the GUI (for example, the optimization level and debug symbol options are available here, but some of the other available compiler options are not), you can add them in the "Other Compiler Options to Append" field.
 
Cheers,
bt
0 Kudos
Visitor rwehbi
Visitor
12,321 Views
Registered: ‎09-20-2007

Re: I need the set of compiler options

Hi timpe,
 
Thank you very much for the preceeding information.
I need more details about packing structures :
In the run time I wrote down the following :
 
#pragma pack(1)                                                                             
//Structures
#pragma pack(pop)
 
What I need is to replace the pragma by a compiler option, so in the refrence doc you mentioned I saw the following options :
-mno-bit-align
-mno-strict-align
 
These two options I guess, must replace the pragma before. Sadly it is not the case.
Do you have any illustrations ??
 
Regards,
Rami
0 Kudos
Xilinx Employee
Xilinx Employee
12,278 Views
Registered: ‎08-13-2007

Re: I need the set of compiler options

Rami,
 
I'll admit that I'm not the expert in the MicroBlaze and PPC compiler options.
 
I did find this:
http://www.xilinx.com/xlnx/xil_ans_display.jsp?iLanguageID=1&iCountryID=1&getPagePath=24907 (9.1i EDK - Are pragma directives supported for MicroBlaze?)
I assume it may be a similar situation for the PPC's compilers.
 
I hope this helps.
 
Cheers,
bt
0 Kudos
Visitor rwehbi
Visitor
12,271 Views
Registered: ‎09-20-2007

Re: I need the set of compiler options

Hi timpe,
 
What you gave me are the run time compiler options, I need the options that are added to the make file.
 
 
Regards,
Rami,
 
 
0 Kudos
Xilinx Employee
Xilinx Employee
12,213 Views
Registered: ‎08-13-2007

Re: I need the set of compiler options

Rami,
 
Your questions are officially now outside of my area of expertise. ;)
 
There is a -fpack-struct option which you may find useful but I have no personal experience with it:
http://gcc.gnu.org/ml/gcc/2005-03/msg00722.html (Re: Question about "#pragma pack(n)" and "-fpack-struct")
 
Good luck,
bt
0 Kudos