Procyon linking

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

The procyon library is a set of .c .h file. Can anyoune please tell me how could I build them into .o, .a, .lib files so that I could link them in with AVR Studio?

Thanks,
axos88

axos88

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

You use a compiler to build them into object code files (.o). You use a librarian to combine the object modules into a library (also known as an "archive" in GNU tools parlance) (.a). I don't know what a .lib file is with the GNU toolchain.

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

EW, isn't there an automated approach for this?

Or what compiler should I use?

Anyways I got discouraged from using avrlib, becasue a simple print-to-usart-hello-world program got over 2Kb, and thats incredibly much!

axos88

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

Havr you already read this page about how to generate a library with avr-libc (part of the avr-gcc toolchain): http://www.nongnu.org/avr-libc/u...

Note, there is one typo on that page: "avr-as" should be "avr-ar"