[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Web browser for MiNT.



On Mon, 30 Mar 1998, Konrad Kokoszkiewicz wrote:

>   easy possibility to access 15 32-bit registers. If you put all your 
>   variables there, your code will be lightspeed when compared wit a C
>   compiled equivalent with 2 accessible registers and the rest of
>   variables stored in the memory.

?? No decent C-compiler (or Pure C for that matter) use only two
registers, it use as many as it needs at any given time.

> totally in assembler instead of mixed C & asm. Just because interfacing
> the code from C to asm is pure pain and wastes the CPU time (you have to

Mixing C and assembly is very easy, atleast in Pure C.

> push variables to the stack, then call teh assembler module with jsr, then
> pull everything back, do the job, then do rts in order to be back to the 
> C).

If you use Pure C you will usually pass arguments in registers.


/*
** Jo Even Skarstein    http://www.stud.ntnu.no/~josk/
**
**    beer - maria mckee - atari falcon - babylon 5
*/