PDA

View Full Version : "C" compiler



Eng4444
- 1st June 2006, 08:13
I am used to write my code using PicBasic Pro.

I am finding many suitable programs for my PC16F876A but they are all written in C language!

so can i just copy the programs and paste them directly in PicBasic Pro workspace?

or i need a certain new program?

in case i need a new program (compiler) would anyone be able to give me a download link?

thanks.

Bruce
- 1st June 2006, 13:38
I am used to write my code using PicBasic Pro.

I am finding many suitable programs for my PC16F876A but they are all written in C language!

so can i just copy the programs and paste them directly in PicBasic Pro workspace?
No you can't cut & paste C code into PBP programs.


or i need a certain new program?
You will need the C compiler your code examples were written for.


in case i need a new program (compiler) would anyone be able to give me a download link?

Once you know which C compiler was used to create the code examples you
have, then you'll know which one to get.

Microchip has a free student version of the C18 C compiler;
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&part=SW006011

Hi-Tech also has a free limited version C compiler;
http://www.htsoft.com

And there are quite a few more, but first you really want to find out which
one was used to create the examples you have.

You can always port your examples from one C compiler to another, but of
course you'll need to be somewhat familiar with C to do this.

Eng4444
- 1st June 2006, 14:03
// Compiler : mikroC, mikroElektronika C compiler
// for Microchip PIC microcontrollers
// Version: 5.0.0.3
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++

Here what it is being used.. so from where to get it?

any website?

Bruce
- 1st June 2006, 14:12
HINT: http://www.google.com

Pic_User
- 1st June 2006, 14:21
Hi Eng4444,

Home:
RSC-4x mikroC C compiler for PIC MCUs
http://www.mikroelektronika.co.yu/english/product/compilers/mikroc/index.htm

Manual:
http://www.mikroe.com/pdf/mikroc/mikroc_manual.pdf

Forum:
http://www.mikroe.com/forum/

-Adam-

Ron Marcus
- 1st June 2006, 16:56
After looking at some C routines, it is fairly easy to convert most code to PBP. Of course string handling and FP math is more difficult, but I've found that it's good to stay with something I'm familiar with. I have a project coming up that must be done in C. While part of me is dreading the learning curve, I do look forward to expanding my language knowledge.

Good luck,
Ron

Eng4444
- 1st June 2006, 20:46
Sometimes, i really meet very nice people...like Adam.