Sample Stride Target Settings: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 158: | Line 158: | ||
--targ_ptrdiff_t_int_kind="int" | --targ_ptrdiff_t_int_kind="int" | ||
</pre> | </pre> | ||
Latest revision as of 19:04, 3 July 2015
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" -U__i386__ -U__i386 -D__arm__
Microsoft Compiler
# for command line details, see http://www.s2technologies.com/wiki/index.php?title=S2scompile --compatibility="microsoft" # 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="unsigned short" --targ_size_t_int_kind="unsigned int" --targ_ptrdiff_t_int_kind="int" -U_M_IX86 -D_M_ARM
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" -U__i386__ -U__i386 -D__PPC__ -D__PPC -D__powerpc__
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"