[LLVMdev] More detailed example...

Sarah Thompson thompson at email.arc.nasa.gov
Mon Jan 8 17:01:49 PST 2007


Chris Lattner wrote:
>
> Ok, try passing -Wl,-disable-internalize
>   
Yes, that nailed it nicely.

As a general point, it's very common in flight software to have quite a 
lot of statically allocated data structures, much more so than in 
'normal' code, because the coding standards that are mandated (in many 
cases) outlaw all runtime memory allocation. Typically, malloc is 
allowed, but only at startup.  Real-time kernels provide at least 
interrupt routine support and often also threads, so this static data 
does tend to get shared.

It's unlikely that LLVM will be used to compile flight software any time 
soon, if ever, though it is showing signs of becoming popular as a 
front-end for program analysis (at least here, anyway!), so support for 
this way of working is likely to be very beneficial.

Thanks again,
Sarah



More information about the llvm-dev mailing list