Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote:
> Hi,

>   ./parrot languages/parrot_compiler/parrot_compiler.pbc --language=PAST <
> languages/parrot_compiler/t/basic/hello_3.code

> Calling 'parrot_compiler.pbc' seems to print the generated PASM code

Yes. When you run the .imc version of the program, C<emit_open> is
called in imcc/main.c:526, which sends the output to the to be generated
PBC. If you run the .pbc version of your compiler, the emit_open()
function isn't executed and the default emitter (number 0) is used,
which produces assembly listings (as parrot -o- does).

> Is that that the intended behavior?

The problem is that such output options can't be passed on to secondary
compile runs. They use just what imcc/main used. We probably need a
scheme to pass options from the C<compile> opcode to the compiler.

> CU, Bernhard

leo

Reply via email to