Keil™, An ARM® Company

Discussion Forum

C calling Assembly

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Adam Thompson
Posted
3-Jan-2007 13:11
Toolset
C51
New! C calling Assembly

I am looking for a detailed manual explaining the headers inside of assembly so I can build a function in assembly and call it from C. I saw following link (http://www.keil.com/support/docs/50.htm) but I want to understand what the headers are and choose them on purpose. Any help would be appreciated.

Read-Only
Author
Andy Neil
Posted
3-Jan-2007 14:37
Toolset
C51
New! RTFM?

Did you read the Interfacing C to Assembler section in the Manual - as cited in that document?

Read-Only
Author
Adam Thompson
Posted
3-Jan-2007 15:34
Toolset
C51
New! RE: C calling Assembly

Yes I did, I am not just looking to make this work, I am also looking to understand what the options are specifically in the head of the assembly file. I was told that there are a lot of options and customizations available in the assembly file head.

Read-Only
Author
Andy Neil
Posted
3-Jan-2007 16:01
Toolset
C51
New! Explain

Isn't that precisely what the Manual tells you?

Exactly what is it that you want to know?

What "options" do you mean?
What do you mean by the "head" of the assembly file?

If you want to know about assembler, see the Assembler Manual:

http://www.keil.com/support/man/docs/a51/

Read-Only
Author
Andy Neil
Posted
4-Jan-2007 03:56
Toolset
C51
New! More RTFM

In addition to the Interfacing C to Assembler section
http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm

You will also need to read:

Segment Naming Conventions
http://www.keil.com/support/man/docs/c51/c51_ap_segname.htm

Data Storage Formats
http://www.keil.com/support/man/docs/c51/c51_ap_datastorage.htm

You might also take a look at the Optimiser:
http://www.keil.com/support/man/docs/c51/c51_ap_optimizer.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings