zig/doc/targets.md

16 lines
669 B
Markdown
Raw Normal View History

# How to Add Support For More Targets
Create bootstrap code in std/bootstrap.zig and add conditional compilation
logic. This code is responsible for the real executable entry point, calling
2017-09-30 15:20:12 -07:00
main() and making the exit syscall when main returns.
How to pass a byvalue struct parameter in the C calling convention is
target-specific. Add logic for how to do function prototypes and function calls
for the target when an exported or external function has a byvalue struct.
Write the target-specific code in the standard library.
2016-01-25 22:21:13 -08:00
Update the C integer types to be the correct size for the target.
2017-08-20 14:30:02 -07:00
Make sure that `c_longdouble` codegens the correct floating point value.