8051 & C++ in Linux

Status
Not open for further replies.

ActiveX64

Newbie level 3
Joined
Jul 5, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
Hi, thanks for taking time.

I'm a high level Linux C++ programmer, and somehow new to electronics.

I've bought 2 AT89LP6440 MCUs and now to program them using GCC, I need headers!
Does anyone know how can I find headers? I found them in Atmel, but they seem to not be supposed to work with GCC (compiler), and they're also in C, and I need C++ headers.

Does anyone know the cure, or I have to write the programs in C instead of C++? and use some other compiler instead of GCC?

And also, do you know of any MCU compatible with C++? (NOT C).

Thanks for your helps.
 

Hi,

the stock gcc is not able to generate code for 8051 cores. You can use the SDCC for this.
An MCU does not need to be compatible to c++, it must be the compiler that must be able to generate code for the target. Because of the small memory of MCUs one normally does not use C++ features.

Kind regards,
Sebastian
 
Hi, thanks Sebastian.

I've just begun reading documentation and manual of SDCC.

Thanks for telling me about SDCC. Do you know if it's compatible with AT89LP6440 or not?

I'd be grateful for your answer.

---------- Post added at 14:35 ---------- Previous post was at 13:58 ----------

Hi Sebastian.

I read the whole manual. Seems like the only thing I have to do is to buy the programmer, assemble boards and compile and test the program.

Thanks so much. I'll keep asking any other questions I might have.

---------- Post added at 15:35 ---------- Previous post was at 14:35 ----------

Yes! ATMEL C headers are compatible with SDCC!

Now all that should do is to get involved!

Thanks.
 

pay especially attention to: concerning SFR usage.

Sebastian
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…