piclist 2001\03\05\140756a >
Thread: How to use external .AS assembler files in Hitech C/MPLAB
www.piclist.com/techref/microchip/languages.htm?key=mplab
flavicon
face BY : mikeKILLspam@@spam@whitewing.co.uk



After having problems with #asm sections in Hitech C (optimiser
destroying them and optimising out local vars!), I'm trying to move
all the assembler to an external .AS file, but having no joy, and the
Hitech manual is little help.

I've managed to get a .as file to assemble to a .obj file, but can't
figure out how to tell PICC to link the extra .OBJ file.
I think the 'global' declaration is OK, as I extracted the assembler
from a 'compile to assembler' compilation, and it matches the example
in the manual.
MPLAB 5.00 doesn't appear to allow the .as file to be added as an
extra node to the project, and if I add either the .as file or .obj
filename to the 'additional command line options' section it will
compile (and also assemble, in the case of a .as file), but DOESN'T
generate a .hex file (no error message), and doesn't find the external
label.

Any ideas ? It is possible  at all in MPLAB ?
--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


<mno7atk0tv0jo9mcie5kmgadr4d3hidlil@4ax.com> quoted-printable

See also: www.piclist.com/techref/microchip/languages.htm?key=mplab
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) How to use external .AS assembler files in Hitech C/MPLAB

month overview.

new search...