On Tue, 12 Apr 2005 20:21:41 -0300, Gerhard Fiedler wrote: >Roy J. Gromlich wrote: > >> So my question is - does anyone have experience of a compiled language >> which produces code which can co-exist with direct MPASM code? That is, >> that could compile a procedure into MPASM source (I guess) which could >> then be easily integrated with the existing (unchanged) MPASM code? > >I hope you get more inspiring answers... I don't know of any C compiler >that outputs MPASM code. They all implement their own tool chain up to the >linker (some with separate stand-alone tools, some integrated). > The closest you could get to that would be the compiler's listing file. I think it would take quite a bit of work to turn it into code that could be assembled. It's possible, though, that a lot of the work could be automated. Another possibility would be to use block 'asm' / 'endasm' pragmas to embed existing assembly functions within a C 'wrapper' function. Interfacing the parameters and return values could get really messy, though. Regards, Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist