agnivesh
Member level 2
I have following queries regarding ( embedded systems ) programming in C & Assembly. Please, try to answer as much as you can and give related online references wherever possible in your reply.
1. Basics of combining C & Assembly source codes either
(a) by inline assembly code in C source file, or
(b) by linking separate C and assembly object files etc.
Answer to this query should explain some concepts like details of compiler instructions used i.e, how these are compiled and linked togather, how parameters are passed between different modules and how parameters are stored, accessed & modified in the stack, what are different ways of passing parameters, scopes of variables in different modules etc. ?
2. How C or Assembly code libraries are made (.lib , .h etc.), say if I have some personal source code in C (.c) and assembly (.asm) containing some functions, how can I make library out of that and use it in my source codes ? Can I make a single library out of C and assembly code or do I need to make two different libraries for C and Assembly code ?
thanks in advance
agnivesh.
1. Basics of combining C & Assembly source codes either
(a) by inline assembly code in C source file, or
(b) by linking separate C and assembly object files etc.
Answer to this query should explain some concepts like details of compiler instructions used i.e, how these are compiled and linked togather, how parameters are passed between different modules and how parameters are stored, accessed & modified in the stack, what are different ways of passing parameters, scopes of variables in different modules etc. ?
2. How C or Assembly code libraries are made (.lib , .h etc.), say if I have some personal source code in C (.c) and assembly (.asm) containing some functions, how can I make library out of that and use it in my source codes ? Can I make a single library out of C and assembly code or do I need to make two different libraries for C and Assembly code ?
thanks in advance
agnivesh.