Read the FAQ. The sample makefile that comes with WinAvr should work fine
with the mac. You can also look at the man pages for GCC. something like
avr-gcc -c -mmcu=$(MCU) -I. -x assembler-with-cpp
-Wa,-adhlns=$(<:.S=.lst),-gstabs <yourfile.S> -o <yourfile.o>
should do the job. The magic lines of code are
.section .text,"ax","progbits"
.stabs "",100,0,0,InitEncoders
.stabs "EncoderAsm.s",100,0,0,InitEncoders
In the example, above, the first routine is "InitEncoders" and the file,
is "EncodersAsm.s" As far as I know the rest is boilerplate and once
defined (near the top of your file) text symbols will be available for the
entire file. No data symbols, however. You are still stuck using the map.
-----------
Larry Barello
www.barello.net
| -----Original Message-----
| From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
| Of dlc
| Sent: Tuesday, December 20, 2005 8:23 PM
| To: AVR-Chat@yahoogroups.com
| Subject: Re: [AVR-Chat] GCC-Avg and pure assembly
|
| Larry,
|
| I don't use WINAVR, I'm a Mac person and use just gcc-avr, there is
| no GAS in that distribution. Is avr-as the same thing? Or is there no
| debugger in the "generic" distribution?
|
| thanks,
| DLC
|
| Larry Barello wrote:
| > I do that all the time: high speed encoders, or special low-latency
| > interrupt handlers in assembly (pure) using GAS (Gnu Assembler). Read
| the
| > WinAvr GCC FAQ and look at the GAS manual.
| >
| > The only restrictions, at the moment, is that if you want to do symbolic
| > debugging with the simulator you need to use .coff format and to get
| that to
| > work requires some magic in your assembly source. Hopefully the next
| > release will have dwarf-2 debugging enabled in the assembler and the
| need
| > for magic will go away (hope, hope...)
| >
| >
| > -----------
| > Larry Barello
| > www.barello.net
| >
| >
| > | -----Original Message-----
| > | From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On
| Behalf
| > | Of dlc@frii.com
| > | Sent: Tuesday, December 20, 2005 8:25 AM
| > | To: AVR-Chat@yahoogroups.com
| > | Subject: [AVR-Chat] GCC-Avg and pure assembly
| > |
| > | Hi all,
| > |
| > | I've written code using the gcc-avr compiler in C for various
| projects,
| > | but I have some code written for Tiny13 and Tiny11 chips that are
| > | straight assembly. Has anyone written pure assembly using gcc-avr?
| Can
| > | we use just the assembler
| > | to write code simply in the gcc-avr framework that can be downloaded
| to an
| > | STK500 programmer board? I've not checked to see if AVR-dude can
| handle
| > | the "no ram" chips as well as the bigger chips...
| > |
| > | thanks,
| > | DLC
| > | --
| > | -------------------------------------------------
| > | Dennis Clark
| > | TTT Enterprises
| > | -------------------------------------------------
| > |
| > |
| > |
| > |
| > |
| > |
| > | Yahoo! Groups Links
| > |
| > |
| > |
| > |
| > |
| >
| >
| >
| >
| >
| >
| > Yahoo! Groups Links
| >
| >
| >
| >
| >
| >
| >
|
| --
| -------------------------------------------------
| Dennis Clark TTT Enterprises
| www.techtoystoday.com
| -------------------------------------------------
|
|
|
|
| Yahoo! Groups Links
|
|
|
|
|