c and assembly functions

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

Is it possible to include assembly code in c file.
if it so guide me with starting steps.

My compiler is ICC AVR V6.

Thanks in Advance

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
guide me with starting steps.
If I were you I would start by reading the ICC documentation as the 1st step. :?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why do you want to include asm to C-file?
Do you just mean using asm code from C?
If so, there are usually more than one way:

    C-compiler in-line asm linking asm-object with C-object
    using function pointers

Debugging is for sissies and delivery for surgeons. Real men do demonstration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Parallell discussion on the same topic by the same poster is here: https://www.avrfreaks.net/index.p...

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]