[LLVMdev] LLVM-based address sanity checker
Renato Golin
rengolin at systemcall.org
Thu Jun 16 12:30:23 PDT 2011
On 16 June 2011 20:20, Kostya Serebryany <kcc at google.com> wrote:
> Not hard at all.
> At some point the file had no asm at all, but using the custom asm allows to
> make the generated code more compact.
That should also be simple for other platforms...
> My first attempt that used no asm required ~15 bytes of code.
> Note, this code is executed only once, so it affects the performance very
> slightly (through icache size).
I see, maybe you could leave your C implementation as a fall back.
> Alas. It will grow even more when we add MacOS support.
> (currently, only tiny tests work on Mac).
I saw a few APPLE macros. I think that's the part that needs most
care, since multi-platform (os/arch/etc) could bloat that
considerably.
cheers,
--renato
More information about the llvm-dev
mailing list