Searching \ for 'MPLAB and multiple source files.' 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/languages.htm?key=mplab
Search entire site for: 'MPLAB and multiple source files.'.

Truncated match.
PICList Thread
'MPLAB and multiple source files.'
1999\07\14@154750 by Barry Baldwin

flavicon
face
Hi,

I was wondering if anybody else has had any success in using multiple
source files with MPLAB.  I originally had about 5 source files and then
I would
link the resulting object files.  But I had strange behavior with the
interrupts.  When an interrupt would occur the W register would
decrement by 1 and the status register would then change before I had a
chance to  save either of them.

I have since moved all of the code into one big file and now everything
works just fine.  To me, having multiple source files is the logical way
to do things.  Having
one huge file is just a pain when it comes to developing or porting it
over to the next project.

Anyway now that I have it working I probably won't go back, I was just
curious if I was doing something wrong.

Thanks,

Barry

1999\07\14@215247 by Steve Ridley

flavicon
face
Barry

I do multiple files by using the include directive. Not as good as the
linking method because every file gets recompiled every time but maybe it is
a workable compromise for you.

Steve

{Original Message removed}

1999\07\15@123126 by Barry Baldwin

flavicon
face
Steve,

Even though I was using the link process MPLAB would still rebuild every
file each time I would do a make project.

Using includes is a good idea, at least I can keep the various modules
separate.

Thanks,

Barry

-----Original Message-----
From: Steve Ridley [spam_OUTsteverTakeThisOuTspamINSNET.COM.AU]
Sent: Wednesday, July 14, 1999 6:49 PM
To: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU
Subject: Re: MPLAB and multiple source files.


Barry

I do multiple files by using the include directive. Not as good as the
linking method because every file gets recompiled every time but maybe
it is
a workable compromise for you.

Steve

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