I've downloaded version 3.0.0 of the SDCC and installed it on my windows laptop.
The result is an SDCC folder with an uninstall program, a logo, two text files and five further folders,
but nothing to run. I've checked in the bin, doc, include, lib and non-free lib folders, but there is no application file to be found.
How do I get SDCC to run?
Thanks
Chris
The bin directory should contain several command-line executables including sdcc.exe.
Open a command line prompt (Start -> All Programs -> Accessories -> Command Prompt) and type 'sdcc -v' and press enter. If you accepted the defaults in the installer it should have added sdcc to your path and you should see SDCC telling its version.
Many thanks. I now have a command prompt window (white text on black background), and can get what appear to be sensible responses. However, the example C code I have is incomplete as include files are missing, so I get a list of errors. I tried to complie a program that complied ok using MikroC, but just got a list of errors. If anyone has gone through this learning curve, please advise next step. I'll keep trying and hopfully get the SDCC to work for me.
Nobody can help you with your example C code except your supplier unless you tell exactly what you have and what goes wrong.
I guess it is more of a general comment about code being specific to a complier and how to migrate from one complier to another. Although in theory C code that compiles on on compiler should compile on another?
No, fully portable C code should compile on all compilers. But embedded C compilers have different language extensions to provide support for the embedded world.
You need to port your core to sdcc, or isolate the compiler dependent parts in a #ifdef or separate source file.
(typos: I meant only fully portable C code compiles everywhere, but typical embedded C code is not portable - and you need to port your *code* to sdcc)