K Stol wrote:

hello,

Is it possible to have a program, which consists of multiple IMCC source files?


Not yet, directly.
As a workaround, other files can be .include-ed into main, at least from now on, I have committed a change and a test for this.



Are there some kind of 'header'-like files?


No header files. The subroutines have to use global labels (with one underscore in front), like:

  .sub _main
    bsr _sub1
    bsr _sub2
    end
  .end
  .include file1.imc

   # file1.imc
  .sub _sub1
    ..
    ret
  .end

These labels and branches are resolved then (the compilation of such subs is already separate).


Regards,
Klaas-Jan

leo




Reply via email to