Sample Stride Target Settings: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
(New page: Shown below are sample S2scompile target settings for several popular CPUs. Note that alignment values may change when different compilers are used with a particular CPU. == ARM CPU =...)
 
Line 108: Line 108:
</pre>
</pre>


[[Category:Deployment]]
[[Category:Framework Integration]]
[[Category:Build Tools]]
[[Category:Build Tools]]
[[Category:Reference]]
[[Category:Reference]]

Revision as of 15:00, 14 September 2009

Shown below are sample S2scompile target settings for several popular CPUs. Note that alignment values may change when different compilers are used with a particular CPU.

ARM CPU

GNU Compiler

# for command line details, see http://www.s2technologies.com/wiki/index.php?title=S2scompile
--compatibility="gnu"
# target settings configured for ARM CPU
--targ_sizeof_char=1
--targ_alignof_char=1
--targ_sizeof_short=2
--targ_alignof_short=2
--targ_sizeof_int=4
--targ_alignof_int=4
--targ_sizeof_long=4
--targ_alignof_long=4
--targ_sizeof_long_long=8
--targ_alignof_long_long=8
--targ_sizeof_float=4
--targ_alignof_float=4
--targ_sizeof_double=8
--targ_alignof_double=8
--targ_sizeof_long_double=8
--targ_alignof_long_double=8
--targ_sizeof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8

PowerPC CPU

GNU Compiler

# for command line details, see http://www.s2technologies.com/wiki/index.php?title=S2scompile
--compatibility="gnu"
# target settings configured for PowerPC CPU
--targ_big_endian
--targ_sizeof_char=1
--targ_alignof_char=1
--targ_sizeof_short=2
--targ_alignof_short=2
--targ_sizeof_int=4
--targ_alignof_int=4
--targ_sizeof_long=4
--targ_alignof_long=4
--targ_sizeof_long_long=8
--targ_alignof_long_long=8
--targ_sizeof_float=4
--targ_alignof_float=4
--targ_sizeof_double=8
--targ_alignof_double=8
--targ_sizeof_long_double=16
--targ_alignof_long_double=16
--targ_sizeof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8

x86 CPU

GNU Compiler

# for command line details, see http://www.s2technologies.com/wiki/index.php?title=S2scompile
--compatibility="gnu"
# target settings configured for x86 CPU
--targ_sizeof_char=1
--targ_alignof_char=1
--targ_sizeof_short=2
--targ_alignof_short=2
--targ_sizeof_int=4
--targ_alignof_int=4
--targ_sizeof_long=4
--targ_alignof_long=4
--targ_sizeof_long_long=8
--targ_alignof_long_long=4
--targ_sizeof_float=4
--targ_alignof_float=4
--targ_sizeof_double=8
--targ_alignof_double=4
--targ_sizeof_long_double=12
--targ_alignof_long_double=4
--targ_sizeof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8

Microsoft Compiler

# for command line details, see http://www.s2technologies.com/wiki/index.php?title=S2scompile
--compatibility="microsoft"
# target settings configured for x86 CPU
--targ_sizeof_char=1
--targ_alignof_char=1
--targ_sizeof_short=2
--targ_alignof_short=2
--targ_sizeof_int=4
--targ_alignof_int=4
--targ_sizeof_long=4
--targ_alignof_long=4
--targ_sizeof_long_long=8
--targ_alignof_long_long=8
--targ_sizeof_float=4
--targ_alignof_float=4
--targ_sizeof_double=8
--targ_alignof_double=8
--targ_sizeof_long_double=8
--targ_alignof_long_double=8
--targ_sizeof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8