avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Compiled code; output Bug or Not?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Compiled code; output Bug or Not?
Date: Wed, 15 Jan 2003 12:15:25 +0100 (MET)

Panther Electronics <address@hidden> wrote:

> I learn a few thing's from this, i must devote time on the
> "makefile". any good URL where i can learn from? other than GCC or
> AVR freaks these are only for those who understand Linux & C.

Well, since "make" inherently grew with Unix, you'll find most
descriptions based on Unix.  However, this doesn't hurt.  make simply
executes shell commands (with "shell" having the Unix meaning; under
DOS this is the thing named command.com, cmd.exe or the like).
Whether your shell command to execute is a simple "echo" (which is a
builtin to the Unix shell), or the complicated call to a compiler,
passing many compiler options, is completely up to your Makefile.
Once you understood the basics behind make, all that should be no
problem to you.

Btw., even the graphical gimmick compilers like M$ VisualFoobar use
"make" internally (though a modified version).  My Windows experience
is close to zero, but from the few times i had to have a look at these
tools, i remember there's even an option that shows you the generated
Makefile.

I just typed ┬╗introduction "make utility"┬ź into Google (don't omit the
double quotes around "make utility"), and got a number of results.
>From a cursory view, this one looks good:

http://www.mtsu.edu/~csdept/FacilitiesAndResources/make.htm

> also i would like some pointers with examples of using ASM. with the
> constrains put by GCC?

Did you look into the Assembler chapter of the avr-libc documentation?

There's Harald Kipp's inline assembler handbook, as well as a chapter
about assembler programming in the AVR-gcc environment.  See also the
FAQ entry about the AVR register usage.

Start here:

http://savannah.nongnu.org/download/avr-libc/doc/avr-libc-user-manual/

> I would like the list to bear with my stupid and dumb questions
> cause, i come from ASM and VB background and a "Bird in Water" when
> it comes to C

There are no dumb question, only dumb answers. ;-)

(Btw., please don't add a full quote of previous article[s] to the
bottom of your message.)
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]