I'm gonna pretend I did not read most of the crap posted 
in last couple days, and instead that someone asked 
"Hey, what IDE are people using with SDCC", 
and I'll tell what works for me.

If you are using windows, and happen to have winavr
installed, then you already have an IDE that works with SDCC.
In fact, I think installing winavr is probably a good way to 
go, even if you don't plan to use the AVR aspects of it.

For those that don't know what it is, winavr is a suite
of open-source tools for avr development under windows.

The editor, "Programmer's Notepad" (PN for short), is a generic IDE.
It provides color syntax highlighting, and several other
features useful for programming.  As distributed with
winavr, PN has pre-configured items in the
"tools" menu to run a standard makefile (make all, make clean,
and make program).  PN displays the compiler
messages, with any errors made into clickable links that
will put the editor on the line causing that error. 

Winavr also comes with a subset of CygWin, in particular
it has gnu make.  There are also several utils usually found
in Linux, such as the bash shell, diff, and even md5sum.
If you have winavr installed, then you have md5sum, it even
works from a dos window!  And the gnu make that installs with 
winavr is not tied to winavr, you can use it from other ide's, 
such as notepad++.

There is a util in winavr suite (mfile) that can generate a 
makefile, but unfortunately the options are hardcoded in the 
program.  I just created my makefile by hand.  

Note that there is no conflict between AVR projects, and 
SDCC projects.  PN just runs the makefile it finds in the 
current directory.

I have a directory "G:\projects\" with several subdirectories.
Some are avr projects, and those subdirs have the winavr 
makefile.  Others are SDCC projects, and have a SDCC makefile.
I even have a couple of others that have makefiles that run
an 1802 assembler.  :-)

Programmer's Notepad is an independent project that is bundled
with winavr.  You can download it by itself from it's own website,
but it will need a bit of configuring, and it won't come with gnu make.
I recommend just installing winavr, unless you would find it fun
to do it all yourself.  

I am running it under win98, and there are a couple of quirks, and I
don't know if I am the only one experiencing them.  Sometimes the
output window will disappear (to under the editor window) when I try
to click in the output window.  I have to drag the output window
a couple of pixels by it's titlebar, and then it won't disappear.
Also, the open dialog is sometimes invisible until I click the mouse.
I suspect that it may be due to me being one of the last people on Earth
still running win98.

I suppose these would be show-stoppers for some people, but I find
the utility to be worth the minor annoyance.  Notepad++ is a very 
similar tool to programmer's notepad, and it does not have this bug.
I use both, and they both have their strengths and weaknesses.  (notepad++
has a hex editor plug-in, and PN does not).

For what it's worth, I used wordpad and .bat files with SDCC for a couple
of weeks, till the light bulb went on in my head that I could use winavr's PN 
and make, if I just made a new makefile.

Randy




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to