Specifications
44 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 2: Xilinx Platform Studio (XPS)
R
Compiler Options
A Compiler Option Dialog Window opens up when any active software application name
is double-clicked or Set Compiler Option... menu option is chosen for that software
application in the Software Projects tree in Applications tab. This dialog has the following
four tabs.
Environment
The tab displays the compiler being used for compiling this application. The compiler used
can be changed in the “Software PlatForm Settings” dialog. For a microblaze application,
users can specify what mode the application should be compiled into, XMDSTUB or
EXECUTABLE.
This tab gives you the ability to provide Program Start Address, Stack Size, and Heap
Size for the gcc-based compilers (mb-gcc and powerpc-eabi-gcc). Please note that these
options should not be used with dcc (they should be specified in the linker script for dcc).
Heap size is only for PowerPC instance.
Optimization
This tab allows you to specify various compiler options. The degree of optimization can be
specified to be 1,2, or 3. User can specify whether to perform Global pointer optimizations.
Also, if they included the xilprofile library in the “Software PlatForm Settings” dialog, then
can also choose whether to enable profiling for this application or not.
Users can also choose the debug options, whether the code should be generated witout
debug symbol, or with symbols for debugging (-g) or with symbols for assembly (-gstabs).
Directories
This tab allows you to specify various search directories for the Compiler (-B), for
Libraries (-L) and for Include (-I) files. You can specify what user libraries, if any, should
be used by the linker in the Libs to Link (-l) field. The libxil.a library is automatically
picked up by gcc- based compilers. For dcc, XPS automatically adds libxil.a as a library to
link in the makefile compiler options. You can also specify any Linker script (some times
called map file) to be used. Again, the gcc based compilers pick up the default linker script
from the EDK installation area if this option is not specified. You can also specify the name
of the Output ELF file to be generated by the compiler. If these paths are not absolute, they
must be relative to the project directory.
Advanced
The user can also specify various options which the compiler should pass to the
Preprocessor (-Wp), the Assembler (-Wa), and the Linker (-Wl). Each option is dealt in
detail in the GNU Compiler Tools documentation. You do not need to type in the specific
flags as XPS introduces the correct flag for each option automatically. However, if you type
the flags, then XPS does not introduce them. If there are more than one option in a field,
they should be separated by space.
For compiling program sources, if you want to specify any Compiler Options in addition
to those specified in other tabs, you can specify them in the
Program Sources Compiler
Options
edit box.










