Learn: linking, small data area, bss, relocation ...

T

termiflyer

Does anyone have any recommendations (books, links to class web pages,
etc) for straight-forward learning about everything in between C
programming and assembler? I know C fairly well, and I know assembler
fairly well (as far as using the instruction set to get things done).
What I'm short on is the in between parts: position independent code,
relocation, different sections (SDA, BSS, etc), placing them in flash,
relocating to RAM, how to manipulate all these i C and/or assembly to
get the code to do what you want.

Thanks!!
 
D

Dale

termiflyer said:
Does anyone have any recommendations (books, links to class web pages,
etc) for straight-forward learning about everything in between C
programming and assembler? I know C fairly well, and I know assembler
fairly well (as far as using the instruction set to get things done).
What I'm short on is the in between parts: position independent code,
relocation, different sections (SDA, BSS, etc), placing them in flash,
relocating to RAM, how to manipulate all these i C and/or assembly to
get the code to do what you want.

The back end of the compiler and the linker do all that, so maybe somebody
in a compiler group will give a ****.
 
T

Thad Smith

termiflyer said:
Does anyone have any recommendations (books, links to class web pages,
etc) for straight-forward learning about everything in between C
programming and assembler? I know C fairly well, and I know assembler
fairly well (as far as using the instruction set to get things done).
What I'm short on is the in between parts: position independent code,
relocation, different sections (SDA, BSS, etc), placing them in flash,
relocating to RAM, how to manipulate all these i C and/or assembly to
get the code to do what you want.

This is off-topic in comp.lang.c. If you are considering placing code
in flash, you might want to visit comp.arch.embedded.

As far as segments and relocation, I suggest reading the documentation
for the linker that you are interested in.

Thad
 
M

Mabden

Thad Smith said:
This is off-topic in comp.lang.c. If you are considering placing code
in flash, you might want to visit comp.arch.embedded.

As far as segments and relocation, I suggest reading the documentation
for the linker that you are interested in.

Also, find a newsgroup for the hardware you are interested in.
 
S

S.Tobias

In comp.lang.c termiflyer said:
Does anyone have any recommendations (books, links to class web pages,
etc) for straight-forward learning about everything in between C
programming and assembler? I know C fairly well, and I know assembler
fairly well (as far as using the instruction set to get things done).
What I'm short on is the in between parts: position independent code,
relocation, different sections (SDA, BSS, etc), placing them in flash,
relocating to RAM, how to manipulate all these i C and/or assembly to
get the code to do what you want.

I'm not an expert in the field and I can't give you much advice,
but I think this might be a good overview:
http://www.iecc.com/linker/

You might also find some papers by Ulrich Drepper interesting.

comp.programming is probably a good place to ask this kind
of questions, too. It's definitely OT in c.l.c.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top