Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 7 May 2021 12:53:54 -0300
From: Érico Nogueira <ericonr@...root.org>
To: musl@...ts.openwall.com
Subject: Re: Compiling to single llvm bc, working example?

Em 07/05/2021 11:41, Jon Chesterfield escreveu:
> Hello musl,
> 
> Clang has mixed support for compiling libc from C. A couple of years ago 
> I ran into pattern matching turning fmod into a call to itself and 
> similar. I can see malloc getting into fights with alias analysis as 
> well. I'm not confident ffreestanding is propagated in the IR.

For a tangible example:

https://github.com/picolibc/picolibc/commit/4261cfecabee211af8d0dee1764bf86ed9c8e258

> 
> Can anyone report success from compiling (a subset) of musl to llvm IR, 
> perhaps with the hacks necessary at the time to make the end application 
> work?
> 
> Motivation is an architecture (amdgcn) that can't yet link machine code, 
> but someone may have done this for performance.
> 
> Thanks,
> 
> Jon
> 
> 

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.