From: Peter K. <pe...@pk...> - 2007-10-09 11:34:38
|
Hi, I've posted the sdcc bankswitching code to http://sourceforge.net/projects/ccflasher/ Patches and a sample app are included. Sample app works for cc2430, but it should be simply modifiable to other 8051 chips. The code is tested and works ok as far as I know. I've be able to compile and run the nanostack from sensinode. http://www.sensinode.com/top/newsdesk_info.php?newsdesk_id=23 Would this be possible to include in the main branch? Thanks, Peter On 9/4/07, Peter Kuhar <pe...@pk...> wrote: > 1.) parameter passing on stack and stack misalignment > I'm trying to go around this problem, but I'm jet to find a solution. > > 2.) about linker generation code > The current implementations uses a "template" proxy function written in asm > and assembled to .rel. > Linker then loads this "template" and replaces template symbols once for > every proxy needed. > > The whole proxy code is in the template provided by the programmer( so you > can switch the banks even with the serial port if you want to ) > > - > Peter > > -------------- > On Sep 3, 2007, at 12:30 PM, Maarten Brock wrote: > > In general I'm opposed to having the linker generate or modify any > > code. I > > think only substitution of labels should be allowed. > > To put it briefly, I agree 100% here...it'd be a huge abstraction > violation. Code generation is purely the responsibility of the > compiler. > > -Dave > > -- > Dave McGuire > Port Charlotte, FL > Farewell Ophelia, 9/22/1991 - 7/25/2007 > > > -- http://www.pkuhar.com/ -- http://www.pkuhar.com/ |