On Wed, 28 Jan 2009 00:14:30 -0500, Norman Ramsey wrote:

>> I suspect I just don't know how to use qc--interp.
>  > >From the documentation I found, it seems to expect an input file of
>  > >lua
>  > commande generated by qc--.
> 
> Correct.  qc--interp is a bytecode interpreter that uses Lua as its
> assembler.
> 
>  > qc-- has an option to generate such a file. But when I execute
>  > 
>  >     qc-- -interp a.c-- -o a.qs -v
>  > 
>  > it says, "Translating a.c-- to a.qs", then remains silent a long
>  > time.
>  > 
>  > After a whil I control-C to kill it, and I find a file a.qs with what
>  > seems to be 57408696 bytes worth of copies of the line:
>  > 
>  > #! /usr/bin/env qc--interp
>  > 
>  > -- Puzzled,  hendrik
> 
> That's a new one---I have version 20060821 on my machine, and it works
> fine:
>

hend...@lovesong:~$ qc-- -version
Quick C-- Version 20060821
hend...@lovesong:~$ 
 
>    $ ./hel            
>   Translating ../test2/src/hello.c-- to ../test2/src/hello.qs executing:
>   chmod +x /tmp/xxx
>   executing: rm ../test2/src/hello.qs
>    $ /tmp/xxx
>   hello, world!
>    $
> 
> What version of OCaml are you using to compile qc-- with?
> 

hend...@lovesong:~$ ocaml -version
The Objective Caml toplevel, version 3.10.2
hend...@lovesong:~$ 



When I do this to the hello.c-- in the test wuite, it works, too.  So 
there must be some problem with the a.c-- that I'm asking it to compile,

It's the same ACKERMAN.c-- that's causing the problems reported in the 
"this can't happen" thread.  I've posted it there.  I renamed it from 
ACKERMAN.c-- to a.c-- to save on typing.  Perhaps this symptom will be 
easier to track down than the other -- and perhaps it will turn out to be 
the same bug.  (Not likely, but I can hope!)

-- hendrik



> 
> Norman
> _______________________________________________ Cminusminus mailing list
> [email protected]
> https://cminusminus.org/mailman/listinfo/cminusminus


_______________________________________________
Cminusminus mailing list
[email protected]
https://cminusminus.org/mailman/listinfo/cminusminus

Reply via email to