gnupic: asM files


Previous by date: 9 Feb 2000 13:08:01 -0000 Re: asM files, Matthew Bowles
Next by date: 9 Feb 2000 13:08:01 -0000 Re: gpasm, Michael W. Bogucki
Previous in thread: 9 Feb 2000 13:08:01 -0000 Re: asM files, Matthew Bowles
Next in thread: 9 Feb 2000 13:08:01 -0000 Re: asM files, Matthew Bowles

Subject: Re: asM files
From: Scott Dattalo ####@####.####
Date: 9 Feb 2000 13:08:01 -0000
Message-Id: <Pine.LNX.4.05.10002090646380.20136-100000@tempest.blackhat.net>


On Wed, 9 Feb 2000, Matthew Bowles wrote:

> 
> Yeah, thanks Scott
> I basically understood the files and there use beforehand..
> I really was interested in the viewing of the source.
> Are you saying that is possible to see the source via the .cod file.
> 
> 
> Anyone
> what would happen if I compiled .c to .hex (using Hi tech C cross
> compiler for Linux)
> and then loaded the .hex in gpsim.. And would the .cod file appear
> different, because the .lst file has a C code listing... which is
> obviously different to PIC Assembler listings.
> [coincidently, this is exactly what I am doing]

I don't have the Hitech C-compiler and so I've never tried this. As it
stands, the gpsim gui assumes that the source file for your project was
written in assembly. So I'm fairly certain that it won't work. The cli,
otoh, makes no assumptions (because it's not trying to do anything fancy
like the gui).

If you could send me:

the .c source and all include files and all of the outpus that the Hitech
compiler produces, then I can take a look at how they format their .cod
files and make changes to gpsim to be compatible with them. Now, the gui
would have to be changed significantly to accomodate C-source debugging.
So I can't make any promises that we'll have that working anytime soon (if
at all). 

To get you going though, you may try to see if the Hitech compiler can
produce an intermediate .asm file which can then be assembled by gpasm.
Many C compilers I've worked with are capable of producing a .asm file
with the .c source interspersed as comments. I imaging Hitech can do this.

Another possibility is to use picc (or whatever it is called). There's a
linux executable (not source) that is distributed for free. I know that it
generates .asm output that can be assembled by gpasm. 

Does somebody know where picc is now available?

> Secondly does anyone understand what I just said??

I think so.

Scott


Previous by date: 9 Feb 2000 13:08:01 -0000 Re: asM files, Matthew Bowles
Next by date: 9 Feb 2000 13:08:01 -0000 Re: gpasm, Michael W. Bogucki
Previous in thread: 9 Feb 2000 13:08:01 -0000 Re: asM files, Matthew Bowles
Next in thread: 9 Feb 2000 13:08:01 -0000 Re: asM files, Matthew Bowles


Powered by ezmlm-browse 0.20.