[LLVMdev] IO intrinsics?

Owen Anderson resistor at mac.com
Fri May 13 00:22:29 PDT 2011


On May 12, 2011, at 11:58 PM, Nick Lewycky wrote:

> On 05/12/2011 11:08 PM, 陳韋任 wrote:
>> 
>>   I _guess_ standard functions like getchar/putchar are linked by
>> default.
> 
> Indeed, they're coming from libc. 

To be a bit more specific, they're guaranteed to be present because BrainF itself is a C++ program, and thus must be linked against libc.  Therefore putchar and friends must be visible in the BrainF executable, and the JIT will find them when it tries to resolve the calls from within the JIT'd program.

--Owen



More information about the llvm-dev mailing list