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

Re: some basic problems with ppc assembler



Oliver Ripka wrote:
.LC0: //I guess this means .LC0

.LC0 is a label.

        .string "Hello World"   //is a global string

Outputs a string to object code.  It can be accessed
via the label .LC0 .

.globl main //within the main label.

Declares 'main' as a global symbol (it will be marked
thus in the object file).

        .type   main, @function //whats that for?

Marks main as a function.

main:

A label again.


Segher




Reply to: