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

Re: [f-cpu] vsprintf result for GCC & FCPU



On Mon, Dec 16, 2002 at 10:25:21AM +0100, devik wrote:
> > Too bad that we can't run the code and see whether it really works :(
> > At least, not today... but maybe by the end of the year. I have already
> > built a tiny disassembler (similar to ndisasm, but less powerful) and
> > an instruction-level emulator with built-in mini debugger that support
> 
> :-) The code should work but you have to define macros for
> jumps. The code is not still able to handle loadaddr and
> jumps. Also there is still lack of conditional move - it
> is one which should reduce code size further.

What kind of macros?

> But the only simulation showstopper is the lack of loadaddr
> (emits loadcons instead) - but it should be simple to repair.

My emulator doesn't care about these low-level details - it happily
jumps to addresses generated by loadcons[x].

> But as you - I have to many 'real' work at this time.

When you finally find the time, can you please change the assembler
syntax a little? First, immediate operands should be prefixed with a `$'
character (that is, in real instructions, not in .pseudo ops) - that way
it's possible to make a difference between symbolic constants and register
names (just consider a symbol named `r0') without looking at the opcode.

Second, please change the register names to r0...r63. There are no
designated argument or temporary registers, stack or frame pointers.
Besides that, it's not wise to reflect the calling conventions in the
register names, and IMHO it's also harder to read.

Once you're done with that, my assembler should be able to process the
assembler source files generated by your gcc port. Since I also have ar,
mcs, nm, size, strings and strip utilities floating around on my disk,
we would have an almost complete, working f-cpu toolchain (only ld is
still missing).

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/