[LLVMdev] Hello World assembly without clib "puts"?

Craig Topper craig.topper at gmail.com
Sat Sep 29 17:43:20 PDT 2012


The low level details of sending text to the terminal are very OS and
target specific. It generally requires putting the values into specific
registers and triggering an interrupt. The only way to represent this
behavior in LLVM IR would by adding new target specific intrinsics that can
be converted during instruction selection to the right machine instructions.

On Sat, Sep 29, 2012 at 5:05 PM, Andrew Pennebaker <
andrew.pennebaker at gmail.com> wrote:

> Can Hello World be written in LLVM assembly without using a C library
> function like "puts"?
>
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>


-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120929/1e041751/attachment.html>


More information about the llvm-dev mailing list