RE: [Tech stuff] MSX-C 1.2 troubles

2000-01-28 Thread Frits Hilderink


Hi,

All you need is a .REL file that does contain a 'main@' symbol, right ?

How about creating a .REL with M-80 that declares your 'main@' symbol
and that contains code that jumps to an external label called 'mainX'.

It may sound crude but it could work. BTW. I've used M-80 very often and
with large files and it never crashed or something like that. Is this
generated source very large ?

Frits


 Hello all,

 I recently got my hands on a version of MSX-C 1.2 and having some
 troubles using it. CF (the parser), FPC (parameter checker) and CG
 (code generator) are working fine: my C program translates into very
 beautiful ASM. Then, M-80 is called to generate a relocatable object
 (.REL) and this step fails: M-80 produces a .REL with filesize 0
 (zero, nada, noppes).

 I replaced M-80 by Gen80, but Gen80 doesn't accept the labels
 generated
 by CG - things like 'main@' and '?52431' ... I did a
 search/replace in the
 ASM file, so @ would become X and ? would become Y and then Gen80 runs
 just fine. Unfortunately, L-80 (which has to link the pieces together)
 _needs_
 e.g 'main@' as symbol and can't find it because I replaced it
 with mainX.
 Damn!

 Q: Does anyone here have experience with MSX-C 1.2 and got it up and
 running?
 Q: Is there any assembler out there which I could use instead
 of M-80 or
 Gen80?
 It must of course accept the ...@ and ?... labels _and_ be able to
 produce
 L-80 compatible .REL files...

 Thnx,
 Eric



 
 MSX Mailinglist. To unsubscribe, send an email to
 [EMAIL PROTECTED] and put
 in the body (not subject) "unsubscribe msx
 [EMAIL PROTECTED]" (without the
 quotes :-) Problems? contact [EMAIL PROTECTED]
 





MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED]




RE: [Tech stuff] MSX-C 1.2 troubles

2000-01-28 Thread Eric . Boon



Hi,

 All you need is a .REL file that does contain a 'main@' symbol, right ?

not right :-( There's at least one other symbol L-80 is complaining about.
Can't recall the name ofthat thing at the moment though :-(

 How about creating a .REL with M-80 that declares your 'main@' symbol
 and that contains code that jumps to an external label called 'mainX'.

How can I do that, when M-80 only produces zero-length files?
Apart from that, it could work, if the other symbol I need is the
same for every C source :-)

 It may sound crude but it could work. BTW. I've used M-80 very often and
 with large files and it never crashed or something like that. Is this
 generated source very large ?

Not really. I don't have the ASM file at hand but it's definitely less than
10K... It was somewhat more complex that the std 'Hello World' example,
though :-) Maybe I should give that a try first and C (!) what M-80 does
with that ...

 Eric




MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED]




RE: [Tech stuff] MSX-C 1.2 troubles

2000-01-28 Thread Frits Hilderink




 Hi,

  All you need is a .REL file that does contain a 'main@'
 symbol, right ?

 not right :-( There's at least one other symbol L-80 is
 complaining about.
 Can't recall the name ofthat thing at the moment though :-(

  How about creating a .REL with M-80 that declares your
 'main@' symbol
  and that contains code that jumps to an external label
 called 'mainX'.

 How can I do that, when M-80 only produces zero-length files?
 Apart from that, it could work, if the other symbol I need is the
 same for every C source :-)

Does M-80 only produce zero-length files ? Maybe something else
is wrong...

Can you mail me this M-80.COM together with a file that surely
gives a zero-length .REL file ?

  It may sound crude but it could work. BTW. I've used M-80
 very often and
  with large files and it never crashed or something like
 that. Is this
  generated source very large ?

 Not really. I don't have the ASM file at hand but it's
 definitely less than
 10K... It was somewhat more complex that the std 'Hello
 World' example,
 though :-) Maybe I should give that a try first and C (!)
 what M-80 does
 with that ...

I've had M-80 compile Turbo Pascal 3.3 which had a lot of symbols
and code (over 2 lines !) and it never had any problems...

Then again there are different versions of the M-80 compiler.


Frits




MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED]




RE: [Tech stuff] MSX-C 1.2 troubles

2000-01-28 Thread Eric . Boon



Hi,

 Does M-80 only produce zero-length files ?

AFAI can tell, yes. I'll do some more testing 2n8...

 Maybe something else is wrong...
 Can you mail me this M-80.COM together with a file that
 surely gives a zero-length .REL file ?

Ok. But that won't be till monday morning (unless I get my
PC @ home  uprunning this weekend (fingers crossed! I'm
installing Debian Linux...))

 I've had M-80 compile Turbo Pascal 3.3 which had a lot of
 symbols and code (over 2 lines !) and it never had any
 problems...

 Then again there are different versions of the M-80 compiler.

Hm, then maybe you could mail me _your_ M-80 :-) (Isn't there
a version of M-80 on the MCCM Millennium CD?)

 Eric




MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED]