Re: gplink and gpsim
Molnár Károly <[email protected]> Tue, 19 Jul 2016 15:29:02 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 31 Jan 2016 22:59:48 -0300 juan <[email protected]> wrote: >=20 >=20 > One of the basic functions of a tool like gpsim is to allow > users to look at program variables, that is, memory locations > associated with names. >=20 > As far as I can tell, there's no easy way to do that if you are > linking with gplink and want to watch local registers/variables=20 > using gpsim.=20 >=20 > The problem arises because the .cod file that gplink generates > only contains references to global symbols. Since the > names of the local registers are not written to the .cod file, > they don't show up in gpsim's global symbol table. And so they > can't be added by name to the watch window. >=20 > It is still possible to add any register by address through the > "register view(RAM)" window, but the user has to look up the > names/addresses himself and when added the registers appear as > REGxxx in the watch window - the original names are lost. > Which isn't exactly helpful. >=20 > So...after trying to find a workaround in gpsim, I found that > the simplest solution is to modify gplink so that it writes > local registers to the .cod file. The gplink 'patch' is 10 lines > long if anybody is interested.=20 >=20 I not watched the list, because very rarely writes someone. I'm interested in the patch, so if you can please send it to the project: = https://sourceforge.net/p/gputils/patches/ Regards: Moln=E1r K=E1roly