Yes, I'm working with MPLAB projects. Right now I can build a project with ASM files from the MPLAB IDE, and get the resulting project files, all trough a temporal ".bat" file called from MPLAB to run MPASM. I suppose we can build a project with mixed ASM and C files, assemble, compile and link it to get the final "hex" file. The problem is (I suppose) in the C compiler we're using. The C17 compile source code only for 17Cxx parts, and we are using a 16C73, so we are trying with HitecC and Microchip C demo versions, and none of them make the object file. The Labcdemo.exe file seems to work (there's no error message), but no object file is written to disk. Are we making somethig wrong? -----Mensaje original----- De: James Grosbach [SMTP:james.grosbach@MICROCHIP.COM] Enviado el: martes 30 de junio de 1998 21:49 Para: PICLIST@MITVMA.MIT.EDU Asunto: Re: Linking ASM and C I can help with getting MPLAB-C17 and MPASM talking to one another. Hitech C does not, to my knowledge, support the MPLINK object file format. MPLAB-C17 always compiles to objects. What sort of diagnostics are you getting when you link? Also, are you using MPLAB projects, or are you running directly from the command line? A couple of quick pointers which might help: * symbols in MPASM are private by default. Any ASM symbols which you need to address from C code must be declared as public via the GLOBAL directive in MPASM. * Conversely, to address C symbols in MPASM code, the symbols should be declared in the ASM file as EXTERN. C symbols are public by default, so no additional stuff should be necessary there. * Make sure you link with the appropriate processor module when using MPLAB-C17 objects. E.g., p17c756.o. Jim Grosbach ____________________Reply Separator____________________ Subject: Linking ASM and C Author: Alvaro Deibe Diaz Date: 6/30/98 5:27 PM Hi all, I'm trying to link object code in a project with two different sources: a "BIOS" written in ASM and assembled with Mpasmwin and a program written in C. I can assemble to "hex" the ASM code directly to hex, or assemble to object and then link it with Mplink. ?How can I do to compile the C code to object? I'm trying Hitech and Microchip compiler demo versions right now, but none of them seems to work. ?Any ideas? Thanks.