|
From: <vac...@se...> - 2007-12-05 15:53:26
|
Hello, > Try with these updates, compiles with SDCC 2.7.0 #4818. > > Note that you must recompile the SDCC library files using the 2455 (or > 4550, ...) as the default processor. If you use the ones that come > with the SDCC distribution, the resulting code won't work (problem with > sfr allocations between the 18f242 and the 18f2455). I got the message form Xander regarding his USB framework. How can I manually create (on Win32 platform) pic18f2455.lib file ? I downloaded sdcc-2.7.0.tar.bz2 source package and there is just Linux (./configure;make;make install) methodology described. If I try it with just "sdcc pic18f2455.c" - it does not work for me. Vaclav |
|
From: Taco W. <wa...@sc...> - 2007-12-06 08:28:26
|
On Wednesday 05 December 2007 16:53, Vaclav Peroutka rattled on the keyboard: > Hello, > > > Try with these updates, compiles with SDCC 2.7.0 #4818. > > > > Note that you must recompile the SDCC library files using the 2455 (or > > 4550, ...) as the default processor. If you use the ones that come > > with the SDCC distribution, the resulting code won't work (problem with > > sfr allocations between the 18f242 and the 18f2455). > > I got the message form Xander regarding his USB framework. > > How can I manually create (on Win32 platform) pic18f2455.lib file ? I > downloaded sdcc-2.7.0.tar.bz2 source package and there is just Linux > (./configure;make;make install) methodology described. > > If I try it with just "sdcc pic18f2455.c" - it does not work for me. > > Vaclav > If you work with windows, you should install cygwin (http://www.cygwin.com) which gives you a bash shell where you have an unix-like environment. In this environment you can easily configure, make etc. Taco |
|
From: Peter K. <pe...@pk...> - 2007-12-06 08:31:03
|
On Dec 6, 2007 9:18 AM, Taco Walstra <wa...@sc...> wrote: > On Wednesday 05 December 2007 16:53, Vaclav Peroutka rattled on the > keyboard: > > Hello, > > > > > Try with these updates, compiles with SDCC 2.7.0 #4818. > > > > > > Note that you must recompile the SDCC library files using the 2455 (or > > > 4550, ...) as the default processor. If you use the ones that come > > > with the SDCC distribution, the resulting code won't work (problem > with > > > sfr allocations between the 18f242 and the 18f2455). > > > > I got the message form Xander regarding his USB framework. > > > > How can I manually create (on Win32 platform) pic18f2455.lib file ? I > > downloaded sdcc-2.7.0.tar.bz2 source package and there is just Linux > > (./configure;make;make install) methodology described. > > > > If I try it with just "sdcc pic18f2455.c" - it does not work for me. > > > > Vaclav > > > If you work with windows, you should install cygwin (http://www.cygwin.com > ) > which gives you a bash shell where you have an unix-like environment. In > this > environment you can easily configure, make etc. Or just RTFM, it's all explained. - Peter |
|
From: <vac...@se...> - 2007-12-07 07:17:22
|
> > > > > > How can I manually create (on Win32 platform) pic18f2455.lib file ? I > > > downloaded sdcc-2.7.0.tar.bz2 source package and there is just Linux > > > (./configure;make;make install) methodology described. > > > > > > If I try it with just "sdcc pic18f2455.c" - it does not work for me. > > > > > > Vaclav > > > > > If you work with windows, you should install cygwin (http://www.cygwin.com > > ) > > which gives you a bash shell where you have an unix-like environment. In > > this > > environment you can easily configure, make etc. > > Or just RTFM, it's all explained. > Hello, thank you for your answers. But please before you should have read the question. I did have not asked about compilation of the whole package. That's not what I wanted to do. I asked how to compile single library. Anyway Raphael just answered me - thank you very much. Vaclav |
|
From: soliton <sol...@gm...> - 2007-12-06 08:42:09
|
I am using mingw to compile it under Windows. You can find it here: http://www.mingw.org/ However to compile sdcc you also need bison and flex, you can find them in gnuwin32 package at: http://gnuwin32.sourceforge.net/ Also if your target is PIC microcontroller, then you also need gputils. Get it from: http://gputils.sourceforge.net/ Good luck :D -- soliton ------------------------------------ Diskusi di http://phimega.com/forums |
|
From: Peter K. <pe...@pk...> - 2007-12-06 09:02:27
|
btw: there is a script in support/scripts directory called somethig like sdcc_cygwin_mingw32 . ( you can modify it to exclude support for non-pic processors ) It should get you running, when everything is compiled ( before make install ) go to lib directory and compile the libs for your pic. In any case you'll need cygwin environment to compile sdcc on windows, mingw is just a way to compile/link it, to work without cygwin. -- Peter On Dec 6, 2007 9:42 AM, soliton <sol...@gm...> wrote: > I am using mingw to compile it under Windows. You can find it here: > http://www.mingw.org/ > However to compile sdcc you also need bison and flex, you can find > them in gnuwin32 package at: http://gnuwin32.sourceforge.net/ > Also if your target is PIC microcontroller, then you also need > gputils. Get it from: http://gputils.sourceforge.net/ > > Good luck :D > > > -- > soliton > ------------------------------------ > Diskusi di http://phimega.com/forums > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > -- http://www.pkuhar.com/ skype: pkuhar |
|
From: <vac...@se...> - 2007-12-06 09:44:43
|
Hello, I probably do not have MinSYS properly installed. The log is attached. Is it possible to just run following: sdcc $SOME_SDCC_PARAMS pic18f2455.c gpasm $SOME_GPASM_PARAMS pic18f2455.asm gplib $SOME_GPLIB_PARAMS pic18f2455.o to have just the desired LIB file ? Or it is just not possible ? Thank you, Vaclav $ support/scripts/sdcc_mingw32 checking for gawk... gawk checking version of the package... 2.7.0 checking for i586-mingw32msvc-gcc... /usr/local/cross-tools/i386-mingw3= 2msvc/bin/gcc checking for C compiler default output file name... configure: error: C= compiler cannot create executables See `config.log' for more details. make: *** No targets specified and no makefile found. Stop. > ------------ P=F9vodn=ED zpr=E1va ------------ > btw: there is a script in support/scripts directory called somethig l= ike > sdcc_cygwin_mingw32 . ( you can modify it to exclude support for non-= pic > processors ) > > It should get you running, when everything is compiled ( before make = install > ) go to lib directory and compile the libs for your pic. > In any case you'll need cygwin environment to compile sdcc on windows= , mingw > is just a way to compile/link it, to work without cygwin. > > -- > Peter > > > On Dec 6, 2007 9:42 AM, soliton <sol...@gm...> wrote: > > > I am using mingw to compile it under Windows. You can find it here:= > > http://www.mingw.org/ > > However to compile sdcc you also need bison and flex, you can find > > them in gnuwin32 package at: http://gnuwin32.sourceforge.net/ > > Also if your target is PIC microcontroller, then you also need > > gputils. Get it from: http://gputils.sourceforge.net/ > > > > Good luck :D > > |
|
From: Peter K. <pe...@pk...> - 2007-12-06 10:09:27
|
T24gRGVjIDYsIDIwMDcgMTA6NDQgQU0sIFZhY2xhdiBQ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lZm9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL3NkY2MtdXNlcgo+CgoKCi0tIApo dHRwOi8vd3d3LnBrdWhhci5jb20vCnNreXBlOiBwa3VoYXIK |
|
From: Raphael N. <rn...@we...> - 2007-12-06 13:36:56
|
Hi, > Is it possible to just run following: > sdcc $SOME_SDCC_PARAMS pic18f2455.c > gpasm $SOME_GPASM_PARAMS pic18f2455.asm > gplib $SOME_GPLIB_PARAMS pic18f2455.o Probably yes, the Makefile causes ../../../../bin/sdcc --asm=gpasm -mpic16 -p18f452 \ --std-c99 -I. -I../../../include/pic16 \ -Wa,-q --fommit-frame-pointer --obanksel=9 \ --denable-peeps --optimize-goto --optimize-cmp \ --optimize-df --i-code-in-asm \ -o "../build/libdev/pic18f2455.o" \ -c "pic18f2455.c"; rm -f "../build/libdev/pic18f2455.lib"; gplib -c "../build/libdev/pic18f2455.lib" ../build/libdev/pic18f2455.o to create pic18f2455.lib from pic18f2455.c. Maybe this is what you want, after having adjusted some path names?!? In your case, I would also replace -p18f452 with the actual device used, i.e. -p18f2455. I will look into the Makefile to see why this is not done in the default libs and change it (if it's not too difficult ;-))... Regards, Raphael |