Search found 295 matches

by zoranc
May 26th, 2011, 16:59
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

comments // you can use through partial iso1999 support (switch -c99). concerning read/writes to non-local variables only way that works at the moment is access through a pointer stored in a local variable. for an example you can look into a demo.c file which is in the archive. that is the "serious ...
by zoranc
May 26th, 2011, 04:03
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

added interrupt support with a small demo how to use it.
by zoranc
May 25th, 2011, 21:44
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

fixed bug in the inline assembler handling. now frame pointer is unwinded by the compiler.
by zoranc
May 25th, 2011, 04:45
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

inline assembly supported now. look at the demo inside for an example how to do it. interrupts should be rather easy i'd be able to do it in a few hours, but now i'm dead tired. vasm/vlink that's another story any volunteers for that one? @lupin: i hope you are motivated enough to finish my carts, t...
by zoranc
May 25th, 2011, 01:19
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

I hope so, Agilo, I hope so. Such a nice device deserves bigger audience. Thanks to Lupin we got now div/mod and slightly improved mul routines. One Item from the TO-DO list is removed. ;-) As before no guaranties, hope you like it... etc. etc. Ver. 0.006 of the vbccpm C compiler freshly baked and s...
by zoranc
May 24th, 2011, 18:43
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

The very first pre-pre alpha version (V0.004) is here for your viewing pleasure. There are many things missing (take a look at the TODO.txt) and most likely there are many bugs too. I believe there are no viruses inside, but to be sure please check it yourself. ;)

Enjoy! :D
by zoranc
May 23rd, 2011, 03:20
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

Brag time once more, this code: http://pastebin.com/ryZttMW2 produces the attached result.
by zoranc
May 22nd, 2011, 01:25
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

8*8 = 16 is available as cpu instruction, so i'll use it. I will definitely need 16*16 = 16 very soon, and same for div, mod. Bigger versions 32*32=32 will be needed for the long ints and maybe also 16*16 = 32 but right now i'm not sure if i'll be able to use those. You are right, concerning c-lib b...
by zoranc
May 20th, 2011, 04:22
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

Short update. Compiler gets into semi-workable state. It is still pre-pre-alpha infancy, but I was able to compile and run some simple drawing routines. Most important is that I got a feeling of it so am a bit more confidant that I will be able to bring it into usable condition. Only int type is sup...
by zoranc
May 16th, 2011, 11:17
Forum: PM Development Forum
Topic: C compiler
Replies: 58
Views: 27667

Re: C compiler

Thank you for your interest! Great to see. :D Couple suggestions though: I'd recommend using memory for variables instead of the stack, seems more elegant and in most cases will save you from adding to the stack. And at least in pmas you can prepend a label with _ to make the name unique to only oth...