Hello, Just 1 more question, for me to get it right. When I have 2 modules, for example like this:
---main.imc----------- .sub _main bsr _hellosub end .end .include hello.imc ---------------------- ---hello.imc---------- .sub _hellosub /* print "hello" or whatever */ ret .end ----------------------- The ".include" makes sure that IMCC can resolve the labels and stuff? Does it work like this: when IMCC sees ".include", it goes looking for the given file, and just inserts the contents of it into the file that was being compiled, in this case, "main.imc". (I mean not really *insert* into the file, but in IMCC symbol table or something like that.) > These labels and branches are resolved then (the compilation of such > subs is already separate). Or, can the modules be compiled separately without any error like "missing label" ? Klaas-Jan ----- Original Message ----- From: "Leopold Toetsch" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 4:44 PM Subject: Re: IMCC and multiple source files > 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 > > > > > Regards, > > Klaas-Jan > > leo > >