Re: [avr-gcc-list] FIXED - with Strings and Serial I/O
User Tomdean [EMAIL PROTECTED] wrote: How do I eliminate copying strings from flash to SRAM until I need them? And still keep copying other initialized variables? Maybe if I create the string in .text with asm? Then use ldm to fetch bytes as needed. That would be reinventing the wheel. The tools are already there for this sort of thing. The AVR is a very different sort of creature that what you are used to. IMHO, trying to blindly port HC11 code to the AVR is just a bad idea. You really need to slow down and RTFM. -- Later, Jeff ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] FIXED - with Strings and Serial I/O
RTFM is a lot of help. Where are the tools or the doc for the tools for preventing gcc from generating code to copy data segment to SRMA? tomdean ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] FIXED - with Strings and Serial I/O
I found the doc, thanks to Dave, first, then several others who provided pointers. Thanks, tomdean ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] FIXED - with Strings and Serial I/O
Christopher X. Candreva wrote: On Thu, 28 Jul 2005, User Tomdean wrote: Where are the tools or the doc for the tools for preventing gcc from generating code to copy data segment to SRMA? There aren't because that's not what you need to do. There are special print routines for printing directly from program memory. These would be the ones ending in _P. There is also a whole section on Program Space String Utilities. Available here: http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634 ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] FIXED - with Strings and Serial I/O
Best I could do. I already know this stuff, so I haven't looked for the docs lately. Supporting newbies is not my job. Then, if you don't have anything constructive to add, stay out of this thread! tomdean ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list