Hello out there,
I am contemplating to implement a little language on a microprocessor
that has rather a lot of memory (>500 kB) but no OS. I found "Jim Tcl"
which looks promising - but I don't know how to compile it. In the
manual it says "./configure ; make ..." so I fired up MSys and called 'configure'. It ran smoothly but of course it configured 'Jim' for the
PC.
So my question is: How do I tell 'configure' that the compiler to use
is not 'gcc' but rather '<some-path>/arm-none-eabi-gcc'? And what else
should I maybe tell 'configure'?
Hello out there,
I am contemplating to implement a little language on a microprocessor
that has rather a lot of memory (>500 kB) but no OS. I found "Jim Tcl"
which looks promising - but I don't know how to compile it. In the
manual it says "./configure ; make ..." so I fired up MSys and called 'configure'. It ran smoothly but of course it configured 'Jim' for the
PC.
So my question is: How do I tell 'configure' that the compiler to use
is not 'gcc' but rather '<some-path>/arm-none-eabi-gcc'? And what else
should I maybe tell 'configure'?
Or is 'Jim Tcl' the wrong choice altogether and I should look into
other 'Tiny Tcls'?
Any insight or advice will be greatly appreciated
Helmut
Hi Christian, hi Robert
To use another compiler, set CC to the path of the executable:thanks to both of you for your advice: it worked.
CC=/path/to/gcc ./configure
Additionally, you want to set --prefix=/some/path, where it will install
everything on "make install". The tricky part with no OS will be the
file operations. SOmehow the C library that comes with your copiler
either emulates these or simply leaves fopen() etc. out and this will
give errors during compilation. If it wasn't done before, expect to find
some compilation errors which you'll have to deal with in some way. I
don't know about JimTcl, or other micro Tcls, that have been ported
already to microcontrollers. There is a list of Tcl-like languages on
the wiki: https://wiki.tcl-lang.org/page/Small+Tcl
Christian
After some trial and error I succeeded setting 'CC' to my compiler and
it created a makefile. But when I then said 'make' MSys told me 'make: command not found' which I find very intriguing: a Unix-like
environment without 'make'? Very strange.
Having failed on this front I didn't yet try Robert's '--build'
suggestion - this is left for tomorrow.
Again many thanks
Helmut
To use another compiler, set CC to the path of the executable:thanks to both of you for your advice: it worked.
CC=/path/to/gcc ./configure
Additionally, you want to set --prefix=/some/path, where it will install >everything on "make install". The tricky part with no OS will be the
file operations. SOmehow the C library that comes with your copiler
either emulates these or simply leaves fopen() etc. out and this will
give errors during compilation. If it wasn't done before, expect to find
some compilation errors which you'll have to deal with in some way. I
don't know about JimTcl, or other micro Tcls, that have been ported
already to microcontrollers. There is a list of Tcl-like languages on
the wiki: https://wiki.tcl-lang.org/page/Small+Tcl
Christian
[...]thanks to both of you for your advice: it worked.
After some trial and error I succeeded setting 'CC' to my compiler and
it created a makefile. But when I then said 'make' MSys told me 'make: command not found' which I find very intriguing: a Unix-like
environment without 'make'? Very strange.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 44:47:35 |
| Calls: | 12,111 |
| Calls today: | 2 |
| Files: | 15,010 |
| Messages: | 6,518,463 |