Searching \ for '[PIC]: How to use external .AS assembler files in' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'How to use external .AS assembler files in'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: How to use external .AS assembler files in '
2001\03\05@140756 by mike

flavicon
face
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.


2001\03\05@172744 by shane

flavicon
face
To get your project working, go into "edit project", then "node properties" for "?.hex" and change language tool to "pic C linker".
This allows you to use multiple files which are linked at the end.

Go to my tutorial at http://www.workingtechnologies.com/htpic/Hi-Tech_C_tutorial.htm and it will explain how to set up a project.

Hope this helps,
Regards,
Shane.

> {Original Message removed}

2001\03\05@181038 by mike

flavicon
face
On Tue, 6 Mar 2001 11:23:19 +1300, you wrote:

>To get your project working, go into "edit project", then "node properties" for "?.hex" and change language tool to "pic C linker".
>This allows you to use multiple files which are linked at the end.
>
>Go to my tutorial at http://www.workingtechnologies.com/htpic/Hi-Tech_C_tutorial.htm and it will explain how to set up a project.
>

After a lot more fiddling I noticed that what was happening was that
when I added  the .as file to the command line, PICC was changing the
.hex file to the name of the .as file, so MPLAB could then not find it
after the compile/link. So the solution was simply to change the 'extra command line options'
to force the correct output file name, i.e.
<asmsource>.as -o<hexfilename>


> {Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...