HiTech PICC and Assembler variables
On Fri, 30 Mar 2001 16:55:07 +0000, you wrote:
I found that Hi-Tech had a nasty habit of optimising out vars that
were only used inside ASM blocks. I can't remember If I found a solution to this situation for return
vars. I think doing something like result=result;
outside the #asm can fix it, but can also generate unnecessary code.
The other problems is that with full optimisation on. it will
'helpfully' optimise out all your assembler code! I found it to be
much less hassle to put asm stuff in a seperate .as file. Under MPLAB this is relatively painless to do.
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
In reply to: <Pine.LNX.firstname.lastname@example.org>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the