Newsgroups: comp.sys.transputer
From: delamar@univ-orleans.fr (Dominique Delamarre)
Subject: C and OCCAM
Organization: univ-orleans.fr
Date: 4 Jun 1994 18:03:06 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Message-ID: <2sqfkq$glf@centre.univ-orleans.fr>

Hi everybody

I have a problem mixing OCCAM and 3LC (tc2v2 version).

I have done it a number of times without problems however I have now a program that tells
me something like that when linking:



==============================================================================
        ilink -F calcul.l8u -O calcul.c8u -E -V  '-B (200000,1000,1000,50,50)'
ITOOLS :  *** Linking -F ***
Modules = 1, Files = 2000, File names = 128000

Buffers: Link = 200000, Desc = 1000, Code = 3602347
         Symbol = 1000, Symbol name = 32000, Init = 50, Ref = 50

Symbols: REAL32OP, REAL32OPERR

Reading from file 'calcul.t8u'...
Reading from file 'ccalc.c8u'...
Reading from file 'occam8u.lib'...
    ...ignore file, a library.
Reading from file 'occam8u.lib'...

Linking code...
Error-ilink-ccalc.c8u- Reference used before definition, DATAFIX (5)
Error-ilink-ccalc.c8u- Reference used before definition, DATAFIX (9)
Error-ilink-ccalc.c8u- Reference used before definition, DATAFIX (18)
Reading code from file 'calcul.t8u'...
Reading code from file 'ccalc.c8u'...

Buffer usage statistics:
===============================================================================


 "ccalc.c8u" is a C module linked to the interface object "procentc.t8u"

I can notice the followin using ilist (from OCCAM toolkit)

===============================================================================ITOOLS :  *** Binary List of ccalc.c8u ***
00000000  NEWID occam 2 product compiler (19th September 1988)
Toolset transputer compiler/configurer V1.53, 20 April 1989
Target processor : T800 Compilation mode : undefined
0000006E  COMMENT (C) Copyright INMOS Limited 1988
00000090  COMMENT Version 1.0, 28/11/88
000000A7  DESC PROC ccalc(VAL INT Flag,[]INT Ws1,[]INT Ws2,[]INT In,[]INT Out)
0
====== stuff deleted ========
00001857  LONG PATCH O 6124 bytes  Datafix  5  O 6 bytes
0000185D  ADDRESS offset: 5884
00001860  CODE 280 bytes
0000197B  LONG PATCH O 6668 bytes  Datafix  9  O 4 bytes
00001981  ADDRESS offset: 6164
00001984  CODE 528 bytes
00001B97  LONG PATCH O 7388 bytes  Datafix  18  O 4 bytes
00001B9D  ADDRESS offset: 6692
00001BA0  CODE 720 bytes
00
====== stuff deleted ========
===============================================================================


can anyone give me some hint?

particularly what are those "patches" and what means datafix ?


Thanks in advance


Dominique 



=======================================================================

  e_mail: delamar@univ-orleans.fr              Dominique  Delamarre
                                                      LIFO
                                               Universite d'Orleans
                                                    B.P. 6759
  Tel: (+33) 38 41 72 67                       F-45067 Orleans Cedex 2
  Fax: (+33) 38 41 71 37                               FRANCE

=======================================================================



