Sample Stride Target Settings

From STRIDE Wiki
Revision as of 20:14, 22 September 2009 by Ivailop (talk | contribs) (→‎GNU Compiler)
Jump to navigation Jump to search

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
--targ_wchar_t_int_kind="long"
--targ_size_t_int_kind="unsigned long"
--targ_ptrdiff_t_int_kind="long"

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