Commit Graph

269 Commits

Author SHA1 Message Date
Serge Vakulenko
6f15f0ba23 Merge branch 'exec-elf' of https://github.com/RetroBSD/retrobsd 2014-05-02 22:04:16 -07:00
Serge Vakulenko
6f8e71c1b8 Include files modified for compatibility with SmallerC.
Fixed bug in C preprocessor: buffer size reduced to avoid allocation failure.
Added option -v for smlrc.
New example stdarg.c: a demo of function with variable arguments.
2014-05-02 22:00:30 -07:00
Serge Vakulenko
f105cb5bbd /bin/cc command modified to use SmallerC compiler by default (not LCC).
For LCC, please use /bin/lcc instead.

I believe SmallerC is mature enough to try to use it as a primary compiler.
System include files might need some changes (ifdefs) to adapt.
2014-05-01 10:41:41 -07:00
Matt Jenkins
037fc65e93 Merge pull request #19 from alexfru/master
Smaller C: Improve pointer initialization
2014-04-29 13:43:35 +01:00
Matt Jenkins
07b6681eef Improve configsys option parsing
Up until now all the options in the config system have only been
able to take one word (or one string with no spaces) as a parameter.
This update improves it so it takes everything after the = up until
the end of the line (or the first #) as the parameter.
2014-04-29 13:37:09 +01:00
Matt Jenkins
ce1f5ce4dc Improved congigsys option parser
Up until now, options have only been able to have one single word
(or string with no spaces) as their value.  This small patch improves
that and includes everything to either the end-of-line or # (for in-line
comments) as the parameter for the option.
2014-04-29 13:33:54 +01:00
Alexey Frunze
b652f52cb6 Smaller C: Improve pointer initialization
The following global/static pointer initialization should now work:

static char* p1 = "abc" + 1;
static char* p2 = "abc" - 1;
static char* p3 = 1 + "abc";
static int a333[3][3][3];
static int* pa333_111 = &a333[1][1][1];

Other seemingly (and in fact actually) functionality preserving changes
are only to reduce code size when self compiling for DOS using -seg16.
Improvements and fixes require space, sigh.
2014-04-26 15:53:41 -07:00
Serge Vakulenko
b98de3368e *.mk configuration files modified for compatibility with latest version
of Mentor Sourcery CodeBench Lite toolchain
(https://sourcery.mentor.com/GNUToolchain/release2641).
All detected issues fixed.
2014-04-24 21:06:37 -07:00
Serge Vakulenko
1b15bcff49 Fixed bug in assembler: incorrect offset in LUI instruction. 2014-04-24 11:56:01 -07:00
Serge Vakulenko
3a38f291a7 Merged kernel support for ELF executable format from karolina.lindqvist.
Now kernel can directly run executables generated by gcc.
2014-04-23 21:43:09 -07:00
Serge Vakulenko
3942e87cd1 Compiled atc game. Fixed include file for curses library. 2014-04-23 20:02:02 -07:00
Matt Jenkins
8d5a6f60b1 Merge pull request #15 from alexfru/master
Smaller C: Fix a benign typo
2014-04-22 11:15:46 +01:00
Alexey Frunze
bc98f62608 Fix a benign typo 2014-04-22 02:57:42 -07:00
Matt Jenkins
d3e8eefb58 Merge pull request #14 from alexfru/master
Improve variable initialization in Smaller C
2014-04-21 09:25:32 +01:00
Alexey Frunze
fd04710c23 Fix initialization
In the following
typedef struct S0 { char ac[4]; } T1;
int v26 = (int)&((T1*)0)->ac[3];
int v27 = &((T1*)0)->ac[3];
v27 should be initialized to 3 just as v26.
2014-04-21 01:08:49 -07:00
Alexey Frunze
a0a4e242e6 Improve variable initialization in Smaller C
Improvements:
- support initialization of multidimensional arrays
- support initialization of structures
- support initialization of structures and arrays inside functions
- support static inside functions

Notes:
- Only fully-bracketed (sic) initialization of arrays is supported.
- && and || have been partially replaced with & and | to slightly reduce
code size when self compiling for DOS using -seg16.
2014-04-20 20:59:47 -07:00
Matt Jenkins
557a7f6c8f Merge branch 'master' of github.com:RetroBSD/retrobsd 2014-04-20 20:24:33 +01:00
Matt Jenkins
a7d0838ea8 Created global version variable 2014-04-20 20:24:18 +01:00
Matt Jenkins
8577d7082d Merge pull request #12 from sevan/patch-3
Update README.md
2014-04-19 18:43:52 +01:00
Sevan Janiyan
e9ff914f88 Update README.md
On Mpide 0023-macosx-20130715 the path is /Applications/Mpide.app/Contents/Resources/Java/hardware/tools/avr
not
/Applications/Mpide.app/Contents/Resources/Java/hardware/tools
2014-04-19 18:40:07 +01:00
Matt Jenkins
3ac301cade Improved UECIDE compiler path handling 2014-04-19 18:33:40 +01:00
Matt Jenkins
aabc8d8702 Merge pull request #11 from sevan/patch-2
Update README.md
2014-04-19 18:26:29 +01:00
Matt Jenkins
122d7bc73e Merge pull request #10 from sevan/patch-1
Update Makefile
2014-04-19 18:26:19 +01:00
Sevan Janiyan
660b8c3814 Update README.md
Ties in with https://github.com/RetroBSD/retrobsd/pull/10
2014-04-19 16:19:25 +01:00
Sevan Janiyan
da4d3a3a8f Update Makefile
Add target to build MAX32 kernel with Ethernet Shield support
2014-04-19 15:46:33 +01:00
Matt Jenkins
b5a8255248 Changed %2 to %s in string format 2014-04-19 13:37:42 +01:00
Matt Jenkins
22c2f77d84 Added "create" flag to AR commands 2014-04-19 11:46:17 +01:00
Matt Jenkins
ad74c37318 Disabled verbose execution 2014-04-19 11:39:55 +01:00
Matt Jenkins
7205bb7ef2 Switched from mktemp to mkstemp 2014-04-19 11:36:18 +01:00
Matt Jenkins
bbcbed61b0 Resolved argument type mismatch warning 2014-04-19 11:20:33 +01:00
Matt Jenkins
e3e3146c38 Added extra SPI transfer mode IOCTLs - IM 2014-04-19 10:01:26 +01:00
Sergey
d404fca13a Fixed bug in assembler: incorrect offset of far symbols in LUI instruction.
Added .gitignore files for most subdirs.
2014-04-18 01:12:49 -07:00
Matt Jenkins
5c4efd1e44 Merge branch 'master' of github.com:RetroBSD/retrobsd 2014-04-11 12:04:09 +01:00
Matt Jenkins
2b55f43806 Set fubarino makefile to me default configuration 2014-04-11 12:04:00 +01:00
Matt Jenkins
e05a6dc486 Merge pull request #4 from igor-m/master
Mods to ZMODEM, rz may work better now
2014-04-11 12:02:41 +01:00
Matt Jenkins
4a83f1ab98 Merge branch 'master' of https://github.com/igor-m/retrobsd-1 2014-04-11 11:57:30 +01:00
Matt Jenkins
2ce88ee405 Fixed version information for git repository 2014-04-11 11:57:09 +01:00
igor-m
f3d7970ac1 Mods to ZMODEM, rz works a little bit smoother now 2014-04-11 11:55:28 +02:00
Matt Jenkins
de064ac74b Moved rdisk.c into kernel. Renamed startup.S to _startup.S 2014-04-11 10:20:46 +01:00
Matt Jenkins
a1cfe257dd Merge pull request #3 from alexfru/master
Fix compilation warnings/errors in smux, tip, virus
2014-04-11 10:04:42 +01:00
Alexey Frunze
75eebef473 Fix compilation warnings/errors in smux, tip, virus
Fix compilation warnings/errors primarily due to unused variables.
2014-04-11 01:26:45 -07:00
igor-m
1ac382c173 Added Watchdog reg defs 2014-04-11 07:34:02 +02:00
Matt Jenkins
b11d24abb8 Markdowned readme 2014-04-11 00:19:14 +01:00
Matt Jenkins
973449d228 Markdowned readme 2014-04-11 00:17:57 +01:00
Matt Jenkins
6957ec9c98 Markdowned readme 2014-04-11 00:17:34 +01:00
Matt Jenkins
b9985fb258 Markdowned readme 2014-04-11 00:16:49 +01:00
Matt Jenkins
4b4bc6a577 Markdowned readme 2014-04-11 00:12:40 +01:00
Matt Jenkins
ba5c6ddf4a Markdowned readme 2014-04-11 00:06:10 +01:00
Matt Jenkins
f57bb6fe86 Markdowned readme 2014-04-11 00:04:39 +01:00
Matt Jenkins
500db22019 Markdowned readme 2014-04-11 00:03:52 +01:00