[LLVMdev] More detailed example...
Chris Lattner
sabre at nondot.org
Mon Jan 8 17:36:00 PST 2007
On Mon, 8 Jan 2007, Sarah Thompson wrote:
> 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.
Right. LLVM never turns static allocations into mallocs, though it does
sometime turn small mallocs into static or stack allocations, and can turn
static objects into stack objects or registers. Are you seeing a case
where this happens?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list