[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Tinycc-devel] .rept .endr support
From: |
Marc E. Fiuczynski |
Subject: |
RE: [Tinycc-devel] .rept .endr support |
Date: |
Wed, 3 Nov 2004 18:03:17 -0500 |
Hi Fabrice,
In the 2.6 kernel there is a .rept in arch/i386/kernel/entry.S.
Before I jump into compiling the kernel with tcc, I need to learn more about
the types of problems that I might run into. I noticed that you changed a
few "g=" to "r=" in inline asm code. Why and what does that really mean?
Also, there was some typesystem problem with using ?: statements, which you
expanded out manually. What would have to change inside the compiler to
handle those correctly?
Marc
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf
> Of Fabrice Bellard
> Sent: Wednesday, November 03, 2004 5:24 PM
> To: address@hidden
> Subject: Re: [Tinycc-devel] .rept .endr support
>
>
> 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.
>
>
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel
- Re: [Tinycc-devel] TCC code generation for a stack based VM, (continued)
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Zoltán Lörincz, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Fabrice Bellard, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Zoltán Lörincz, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Fabrice Bellard, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, lucas wix, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, David Hovemeyer, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Alan Grimes, 2004/11/04
- [Tinycc-devel] .rept .endr support, Marc E. Fiuczynski, 2004/11/03
- Re: [Tinycc-devel] .rept .endr support, Fabrice Bellard, 2004/11/03
- RE: [Tinycc-devel] .rept .endr support,
Marc E. Fiuczynski <=
- [Tinycc-devel] compiling linux-2.6 w/ tcc, Marc E. Fiuczynski, 2004/11/03
- Re: [Tinycc-devel] compiling linux-2.6 w/ tcc, Basile STARYNKEVITCH, 2004/11/03
- RE: [Tinycc-devel] compiling linux-2.6 w/ tcc, Marc E. Fiuczynski, 2004/11/03
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Julian Brown, 2004/11/04
- Re: [Tinycc-devel] TCC code generation for a stack based VM, Mauricio Abre, 2004/11/06
Re: [Tinycc-devel] TCC code generation for a stack based VM, Anton Ertl, 2004/11/08