tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] .rept .endr support


From: Fabrice Bellard
Subject: Re: [Tinycc-devel] .rept .endr support
Date: Wed, 03 Nov 2004 23:24:26 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Marc E. Fiuczynski wrote:
Hi,

I read with great interest about tccboot and the ability to compile the
linux kernel quickly with tcc. There were a few mods required to the 2.4.26
kernel to get it to compile with tcc. One of them was .rept and .endr
support.

As I'd like to start playing with tcc, I was thinking about adding such
support myself as a contribution back to your project. I started to hack in
support for rept/endr support into tccasm.c:asm_parse_directive().
Specifically, I was thinking of simply creating a BufferedFile object that
captured the code between the .rept and .endr asm directives, and then cause
tcc to process this N times as specified by .rept.  Would that be a viable
approach?

It is better to record the tokens between .rept and .endr. Otherwise you will have problems with the preprocessor. I did not try to compile the 2.6 kernel. It would be interesting if you could try and see what are the problems (note: .rept/.endr do not seem to be used in such kernels !).

Fabrice.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]