Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/10/05 14:55
Read: times


 
#84660 - C header file
I have been working on programming using assembly language. I have been told several people, that I should try C.

I am not failure with C, but am not apposed to learning it.

I have now read a couple of books on C for the 8051, and one thing I notice, is that all the code examples have a header file associated with the processor. (#include 8051.h or somethin like that) It seems that these books assume that the reader already has this header file. There is no mention of creating it. Is there a collection of these somewhere?

From what I gather so far, the header file is just a way to define all the registers.

For my next project, I'll be using a TI MSC1213, or MSC1214. I was considering this as my first project in C. The stumbling block at this point is the header file that that defines the registers, and printf. Would you folks care to explain the actual purpose of a header file, and then point me to some text that would explain its creation. I plan on using sdcc for my first projects in c.

Thanks in advance for your suggestions.

Chris Seeley


List of 6 messages in thread
TopicAuthorDate
C header file            01/01/70 00:00      
   find or make            01/01/70 00:00      
   Headers            01/01/70 00:00      
   What Compiler are you using            01/01/70 00:00      
   C header file for SDCC            01/01/70 00:00      
      Great!            01/01/70 00:00      

Back to Subject List