Sample Stride Target Settings: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
No edit summary
Line 26: Line 26:
--targ_pack_alignment=8
--targ_pack_alignment=8
--targ_wchar_t_int_kind="long"
--targ_wchar_t_int_kind="long"
--targ_size_t_int_kind="unsigned long"
--targ_size_t_int_kind="unsigned int"
--targ_ptrdiff_t_int_kind="long"
--targ_ptrdiff_t_int_kind="int"
</pre>
</pre>


Line 57: Line 57:
--targ_pack_alignment=8
--targ_pack_alignment=8
--targ_wchar_t_int_kind="long"
--targ_wchar_t_int_kind="long"
--targ_size_t_int_kind="unsigned long"
--targ_size_t_int_kind="unsigned int"
--targ_ptrdiff_t_int_kind="long"
--targ_ptrdiff_t_int_kind="int"
</pre>
</pre>


Line 87: Line 87:
--targ_pack_alignment=8
--targ_pack_alignment=8
--targ_wchar_t_int_kind="long"
--targ_wchar_t_int_kind="long"
--targ_size_t_int_kind="unsigned long"
--targ_size_t_int_kind="unsigned int"
--targ_ptrdiff_t_int_kind="long"
--targ_ptrdiff_t_int_kind="int"
</pre>
</pre>



Revision as of 06:09, 7 May 2010

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 int"
--targ_ptrdiff_t_int_kind="int"

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

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

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