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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/09/00 12:10
Read: times


 
#5576 - RE: SDCC COMPILER for 8051
Mak,

I have also been struggling with CYGWIN/SDCC. I have yet to get it perfected, but I can tell you what I have had the best luck with, and maybe we can figure this thing out.

I haven't had luck compiling the compiler under CYGWIN. It doesn't seem to generate an sdcc.exe file. I have however successfully compiled 8051 code with SDCC using the downloadable WIN32 binary. I got some strange errors/warnings when I tried more complex programs, so I still have yet to get it to work properly. I am considering just using another partition to run Linux. That might be the easiest way to do this. I will detail what I did to get SDCC to compile basic programs.

1. I downloaded the CYGWIN setup.exe. Run it. Select Install from internet.

2. I downloaded the SDCC WIN32 binary package. Extracted it.

3. This whole setup seems to be very sensitive to paths/file placement. I had to do a bunch of weird things to get it to work. I even placed the CYGWIN dll in the directory with sdcc.exe. That seemed to work, but not very well, as the compiler has trouble finding libraries and include files, even when I specify the path at the command line. I must admit that I am a UNIX newbie and that is probably the reason I am having trouble. I have used DOS compilers for years with no trouble. I have found that one problem is that the paths and directories don't exist in CYGWIN the way the instructions say they do.

EX.

cspackma@FINICKY ~
$ cd c:\sdcc

cspackma@FINICKY /cygdrive/c/sdcc
$ mkdir /test

No Test directory is created in C:SDCC

I then find it in C:CYGWIN instead of C:SDCC

I have found some setup instructions in different places on the internet, following them hasn't improved my luck. If you like I can email them to you and you can try them.

Can someone please post instructions for setting this up that work! Maybe I can post the instructions that I am using and someone can point out where I am going wrong.

Cory Spackman

List of 8 messages in thread
TopicAuthorDate
SDCC COMPILER for 8051            01/01/70 00:00      
   RE: SDCC COMPILER for 8051            01/01/70 00:00      
      RE: SDCC COMPILER for 8051            01/01/70 00:00      
RE: SDCC COMPILER for 8051            01/01/70 00:00      
RE: SDCC COMPILER for 8051            01/01/70 00:00      
   RE: SDCC COMPILER for 8051            01/01/70 00:00      
RE: SDCC COMPILER for 8051            01/01/70 00:00      
   RE: SDCC COMPILER for 8051            01/01/70 00:00      

Back to Subject List