|
|
|
# Builtin Functions
|
|
|
|
|
|
|
|
Builtin functions are compiled as special symbols before assembly generation, so they can be optimized for the target architecture. They are NOT normal functions (in fact technically they are not functions at all...)
|
|
|
|
|
|
|
|
They are:
|
|
|
|
1. Not guaranteed to have a label of any kind; they have no address
|
|
|
|
2. Usually compiled inline, depending on the function
|
|
|
|
3. Are compiled in a special way
|
|
|
|
4. Are usually extra fast :)
|
|
|
|
|
|
|
|
## print and println
|
|
|
|
|
|
|
|
void print(...);
|
|
|
|
void println(...);
|
|
|
|
|
|
|
|
These functions write to stdout and take any type of argument. println will add a newline character at the end, print will not.
|
|
|
|
|
|
|
|
With int8 and uint8, they will print the argument as a character. For all other integer types the argument is printed as a number in base 10.
|
|
|
|
int8 pointers are printed as a C string.
|
|
|
|
All other pointers are printed in lowercase hexadecimal, without any preceding '0x' (you can add this yourself very easily). |
|
|
|
\ No newline at end of file |