Slashdot Mirror


Pre-Processers for Inlined C Code?

Scott Snell asks: "I have inherited the C code for an embedded system project that has run out of code space. The source code is highly fragmented and the compiler doesnt generate efficient code for stack handling. Ideally I would direct the compiler to 'inline' a lot of the functions but unfortunately it doesnt support the inline keyword. Using macros is dangerous and manually inlining is driving me crazy! What I need is a tool that will take the source files, look for the 'inline' keyword and generate new source files that are inlined. Any ideas?"

3 of 62 comments (clear)

  1. in a word... by Naikrovek · · Score: 2, Funny

    Perl.

    1. Re:in a word... by 91degrees · · Score: 2, Funny

      You mean that you think Perl is a solution to a text processing task? Nexst you'll be suggesting using a clock to tell the time or something equally daft.

  2. On another note... by cheezfreek · · Score: 2, Funny

    On another note, I'm a compiler writer who's having problems writing my compiler. Does anyone who frequents Slashdot know of a tool that will take a language standard as its input, and generate a working, bug-free, efficient compiler? Barring that, is anyone proficient enough in Perl? That's the language I've been using to implement my compiler, and I find that it's great for parsing. And while you're at it, maybe you could...