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 =...)
 
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.  
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 ==
== ARM CPU ==
=== GNU Compiler ===
=== GNU Compiler ===
Line 25: Line 25:
--targ_alignof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8
--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__
</pre>
===Microsoft Compiler===
<pre>
# 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
</pre>
</pre>


Line 53: Line 90:
--targ_alignof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8
--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__
</pre>
</pre>


Line 80: Line 125:
--targ_alignof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8
--targ_pack_alignment=8
--targ_wchar_t_int_kind="long"
--targ_size_t_int_kind="unsigned int"
--targ_ptrdiff_t_int_kind="int"
</pre>
</pre>


Line 106: Line 154:
--targ_alignof_pointer=4
--targ_alignof_pointer=4
--targ_pack_alignment=8
--targ_pack_alignment=8
--targ_wchar_t_int_kind="unsigned short"
--targ_size_t_int_kind="unsigned int"
--targ_ptrdiff_t_int_kind="int"
</pre>
</pre>
[[Category:Deployment]]
[[Category:Build Tools]]
[[Category:Reference]]

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"