PDA

View Full Version : Code size restriction


PJE
12-18-04, 04:11 PM
Hi,

I've just ported a program to StatiC (sequential mode) and I can get it to compile, but when I send the resulting file through the assembler I get:

ABORT: Demo version code size restriction

What do I need to do to get the file to assemble. (I tried the Small-C assembler, but that crashed out...)

Do I need to buy the full version?

I'm writing for an IsoPod v2.

Regards,

PJE

Also is there a way to pre/post increment a pointer?

^Ptr++ = val

rather than

^Ptr = val
Ptr = Ptr + 1

petegray
12-18-04, 06:04 PM
PJE,

The simple answer is that you need to buy the full version of the Assembler - the StatiC bundle is purely for demonstration of the language, and the Assembler in the bundle is code size restricted.

The Small-C Assembler can not be used with StatiC, as StatiC generates more complex (but smaller) code than Small-C.

StatiC doesn't support the C ++/-- operators.

Regards,
-Pete.

PJE
12-18-04, 06:49 PM
Hi Pete,

Thanks for the quick reply - What's the limit with the demo version?

I'll look at getting the full version on Monday. Will StatiC be a free compiler or will there be a cost?

l also see a reference to a TinC? compiler, what's the scoop?

Regards,
PJE

petegray
12-18-04, 07:31 PM
Hi PJE,

The limit on the demo version of the Assembler is 500 instructions, which is *just* enough to run all of the StatiC demo programs - even the multitasking Finite State Machine examples.

StatiC is free (for the restricted FSM version), but not open source. DDJ are scheduled to publish an article on the StatiC Language and Compiler in the March edition (so it'll be out in about a month or so).

TinC is a completely different project, open source. The aim of TinC (Tiny, in C) is to extend Jack W. Crenshaw's excellent tutorial "Let's build a compiler" into a multihost, target-neutral, pcode generating entity. Jack's original compiler was coded in Pascal.

Regards,
-Pete.