Re: mixing C and assembly



On Apr 22, 4:50 am, Lax <Lax.Cla...@xxxxxxxxx> wrote:
Are there any situations where programming an embedded processor
"requires" at least some assembly code?


The new Cortex M3 is advertised by ARM not to require any assembly
code, even boot up or ISR's.

http://www.arm.com/pdfs/Cortex_M3_DS.pdf
http://www.arm.com/pdfs/IntroToCortex-M3.pdf

"The Cortex-M3 processor includes many features that enable faster
software development, with developers not required to write any
assembler code or have a deep knowledge of the processor and its
register set."

"By handling the stack operations in hardware, the Cortex-M3 processor
removes the need to write assembler wrappers that are required to
perform stack manipulation for traditional C-based interrupt service
routines,
making application development significantly easier."

"Traditionally ISRs require an assembler wrapper to handle stack
manipulation before and after the main C-based routine is called and
during start-up boot code. The Cortex-M3 processor handles all stack
manipulation in hardware, removing the need for the assembler and
enabling the developer to program just in C and without having to
learn exactly how the processor and all of the register
banks operate."

.



Relevant Pages

  • Re: Static Libraries and Assembly Language
    ... The "static libraries" is one of methods to fabricate that. ... syntax, you can choose to translate it to syntax of your assembler, ... Usage of a DLL is good thing as long as this DLL is common and is used widely. ... The point was about utilizing of assembly code among different assembly ...
    (alt.lang.asm)
  • Re: Bare-Metal Programming
    ... on one of these punch cards and loading into memory where it could be ... The first assembler was met with outrage. ... that I could program not only in assembler but in machine language. ...
    (comp.programming)
  • Re: Error: suffix or operands invalid for `int
    ... I was writing a small assembly code in GAS syntax (actually learning ... from Linus' first kernel). ... b.s: Assembler messages: ... b.s:27: Error: suffix or operands invalid for `int' ...
    (comp.os.linux.development.system)
  • Re: Static Libraries and Assembly Language
    ... want to utilize a piece of assembly code written in another assembly ... syntax, you can choose to translate it to syntax of your assembler, ... ports are not a big problem, out of the considerations of Macros. ...
    (alt.lang.asm)