Call the C standard library from assembly.
This is not OS portable because ANSI C does not specify the ABI.
Things which may vary include:
- calling conventions
- method names. E.g. Watcom uses
puts_instead ofputs
The only way to deal with that is by treating each implementation differently with macros.
The following methods are covered:
main/:mainfunction in assemblystart/:_startfunction in assembly, and link withldstart-gcc/:_startfunction in assembly, and link withgcc