Forwarded message follows:
Marteen, I just ran across the multiple file info in the SDCC user's manual, which explained the linking of multiple files. I now seem to be able to use more than 256 bytes of XDATA in my program--I set up for 1024 bytes of XRAM. I'll test the XRAM more rigorously over the next couple of days, but thanks so much for your help!!!!!!!!!!!! Gary P.S. Gudjon, thanks for your help as well. I was just not sophisticated enough to undestand your suggestion!!!!!!!!!! ________________________________ From: Gary Sides Sent: Monday, September 08, 2008 9:04 PM To: [EMAIL PROTECTED] Subject: problem with XDATA and AT89C51ED2 Marteen, I ran across your reply to my question of a week ago on the web. Thanks for the suggestions. 1. I found the _sdcc_exrternal_startup() function and inserted the statement AUXR=0x8C; which should select 1024 bytes as the size of the XRAM. 2. Should I still return 0 from this function or should I return a different value? 3. I also found crtxinit.asm and set the value of DUAL_DPTR to 1 and replaced all occurences of _DPS to _AUXR1. 4. I assembled crtxinit.asm using ASX8051, which resulted in the generation of the file crtxinit.rel. 5. I'm now ready to link crtxinit.rel with the "rest of my project," but I'm uncertain how to do this. My project consists only of one source file and a header file for the AT89C51ED2 plus the crtxinit.rel file. Where can I find information on how to link the .rel file and my project files? Also, is the _sdcc_external_startup() function called automatically during the compilation of my program? Thanks, Gary P.S. I appreciate the time you have taken to answer my questions!!!!!!!!! Also, I previously registered as a member of the SDCC forum, but my registration does not now seem to be recognized. In addition, the format of the forum seems to have changed. I no longer seem to be able to search the forum and received meaningful hits. I'm a bit confused over this. Any suggestions would be appreciated as well. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user