Re: [C--] Mlite C Compiler -- A C front-end generates C-- code

jitesh Dundas <[email protected]> Sun, 11 Jul 2010 14:29:03 +0530
Newsgroups gmane.comp.lang.c--
Message-ID <[email protected]>
Hello Ning,

I will need your expert C advise for my project on AI. See I have
written a code to program dreams in machines at the initial level. I
need to go build more complex functions later on but I need some way
of capturing details of non-tangible/non-measurable variables like
emotions. I wanted to keep this connected via a function, mapped with
the a hardware that measures such parameters..

Will your compiler help me do that..I have the normal code ready, but
I wanted to know if your front-end could save my code-writing time.

Thanks,
jd

On 7/9/10, Ning Wang <[email protected]> wrote:
> Norman Ramsey wrote:
>>  > Hi folk,
>>  > I make mlitecc testsuite available at
>>  > http://www.ningwang.org/releases/mlitecc-testsuite-0.1.tar.gz
>>  >
>>  > This testsuite is extracted from gcc testsuite. It includes 2975
>>  > testsutes.  In this release, mlitecc with Quick C-- backend passes 21=
43
>>
>>  > test cases, fails 511 test cases, and has 321 test cases unresolved. =
In
>>
>>  > order to run the testsuite, you need to install dejgnu and mlitecc.
>>
>> Ning,
>>
>> What are you doing about compiling variadic functions?
>>
> I use the gcc built-in functions to compile variadic functions.  That
> says va_start, va_arg, and va_end macros are represented by
> __builtin_va_start, __builtin_va_arg, and _builtin_va_end
> respectively.   A variadic function example and the generated cmm code
> are attached.
>
> By default, mlitecc throws exception when it comes cross va_xxx macros.
> But you can enable this translation by specifying --vararg in the
> command line.  However, Quick C-- cannot handle __builtin_va_xxx, and it
> fails to generate binary code.  I believe it should be relatively easy
> to make Quick C-- to recognize these built-in functions.
>
> mlitecc is the driver like gcc, and mlitecc1 is the actual C front-end
> like cc1.  Just running mlitecc1 will print out all options.
>
> I should implement your proposal for variadic functions, but it requires
> deeper understanding of Quick C--.  I should be able to get back to the
> details of Quick C-- after I finish my another project.
>
> Best regards,
> Ning
>


-- =

Thanks & Regards,
Jitesh Dundas

http://openwetware.org/wiki/Jitesh_Dundas_Lab

Phone:- +91-9561527190

" No one is above nature in this world. If anything can be taken from
one human to another, then the same can be given to a machine as well.
The ways of nature of controlling us are very strange" - Jitesh Dundas

=93Through dangers untold and hardships unnumbered I have fought my way
here to take back what you have stolen.=94
-- Labyrinth (The Movie (1986))
_______________________________________________
Cminusminus mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/cminusminus