[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about code generation
From: |
Gerd Möllmann |
Subject: |
Re: Question about code generation |
Date: |
Fri, 10 May 2024 14:59:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Helmut Eller <eller.helmut@gmail.com> writes:
> On Fri, May 10 2024, Gerd Möllmann wrote:
>
>>> But I guess I'm misunderstanding what you are asking about.
>>
>> I was thinking of (making my life easier and) generating the fix_
>> functions in igc.c, as an example, from knowledge that a C parser has
>> which members are in a given struct, what's their type, Lisp_Object,
>> pointer to something interesting, ...
>>
>> Together with meta infos passed to a code generator this could be used
>> for all sorts of things, I guess.
>
> Would be nice to write things like:
>
> struct foo {
> void* bar [[emacs::igc_fix_obj]];
> }
Yeah, exactly!
>
> and then run a gcc or clang plugin over it and generate the needed code.
>
> Can libgccjit be used to parse C code and could we write the plugin in
> Emacs Lisp? That would be fun.
- Question about code generation, Gerd Möllmann, 2024/05/10
- Re: Question about code generation, Eli Zaretskii, 2024/05/10
- Re: Question about code generation, Gerd Möllmann, 2024/05/10
- Re: Question about code generation, Helmut Eller, 2024/05/10
- Re: Question about code generation,
Gerd Möllmann <=
- Re: Question about code generation, Eli Zaretskii, 2024/05/10
- Re: Question about code generation, Andrea Corallo, 2024/05/10
- Re: Question about code generation, tomas, 2024/05/10
- Re: Question about code generation, Andrea Corallo, 2024/05/10
- Re: Question about code generation, Andrea Corallo, 2024/05/10
- Re: Question about code generation, tomas, 2024/05/10