3.6. Built-In FunctionsΒΆ

Built-in functions are predefined by the compiler. They can be called like a regular function, but they do not require a prototype or definition. The compiler supplies the proper prototype and definition.

The c29clang compiler supports the following built-in functions:

  • The __curpc function, which returns the value of the program counter where it is called. The syntax of the function is:

    void *__curpc(void);
    
  • The __run_address_check function, which returns TRUE if the code performing the call is located at its run-time address, as assigned by the linker. Otherwise, FALSE is returned. The syntax of the function is:

    
    
    int __run_address_check(void);