Re: [avr-gcc-list] Assembly language help for a noob

2007-09-14 Thread Joerg Wunsch
Gre7g Luterman [EMAIL PROTECTED] wrote: Is there a way to turn on debug symbol creation in gcc on .S files? In theory, by passing the option -gdwarf2 down to the assembler (by prefixing it with -Wa, when called from the compiler). However, this is currently broken for DWARF-2. (It would work

Re: [avr-gcc-list] Assembly language help for a noob

2007-09-14 Thread Francesco Sacchi
Gre7g Luterman ha scritto: I'm sure there must be a more efficient way than defining AoffP, AoffQ, and AoffR, but I'm just not knowledgeable enough yet! Can anyone clue me in on the good tricks? This is the offsetof macro we use in our projects: #define offsetof(s,m) (size_t)(((s *)0)-m)

RE: [avr-gcc-list] Assembly language help

2007-07-31 Thread Eric Weddington
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Parthasaradhi Nayani Sent: Monday, July 30, 2007 9:40 PM To: Erik Christiansen; avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] Assembly language help Hello Erik, Erik Christiansen

Re: [avr-gcc-list] Assembly language help

2007-07-31 Thread Joerg Wunsch
Eric Weddington [EMAIL PROTECTED] wrote: IIRC, these modifiers (lo8, hi8, pm_lo8, pm_hi8, others) are somewhat documented in the avr-libc user manual in the FAQ. We documented them there because binutils has long been lacking documentation for the AVR-specific stuff. Fortunately, that has

Re: [avr-gcc-list] Assembly language help

2007-07-30 Thread Erik Christiansen
On Mon, Jul 30, 2007 at 08:00:26AM -0700, Gre7g Luterman wrote: Oh, man! I had no idea these even existed. Is there a list somewhere of neat stuff like this? Ah, errr ..., my local copy of the info page is outdated, but there is a good description of the other modifiers here:

Re: [avr-gcc-list] Assembly language help

2007-07-30 Thread Parthasaradhi Nayani
Hello Erik, Erik Christiansen [EMAIL PROTECTED] wrote: http://opensource.cqu.edu.au/cgi-bin/info/info2html.cgi?(as.info)AVR-Modifiers Thanks for the link. This will many people who use assembly language. Few are interested in writing complete assembler programs on the AVR, it seems, though

Re: [avr-gcc-list] Assembly language help

2007-07-28 Thread Gre7g Luterman
--- Parthasaradhi Nayani [EMAIL PROTECTED] wrote: Hello Group, I am writing an assembly language function in which I need to get the address of a sub-routine into a register pair. How can I do it? A sample code is given below. func1: nop nop ldi r24, lo8(label1) ldi

Re: [avr-gcc-list] Assembly language help

2007-07-28 Thread Parthasaradhi Nayani
Hello Greg, Thanks a lot. I am now able to get the address. Regards Nayani P Gre7g Luterman [EMAIL PROTECTED] wrote: --- Parthasaradhi Nayani wrote: Hello Group, I am writing an assembly language function in which I need to get the address of a sub-routine into a register pair. How

[avr-gcc-list] Assembly language help

2007-07-27 Thread Parthasaradhi Nayani
Hello Group, I am writing an assembly language function in which I need to get the address of a sub-routine into a register pair. How can I do it? A sample code is given below. ;--