🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #70

Re: Linking Problems

#70
From: ~{QG9p~}
Date: Sat, 31 Oct 1992 22:20
18 lines
1405 bytes
>In article <1992Oct28.015555.23775@monu6.cc.monash.edu.au>, eda735a@monu6.cc.monash.edu.au (P.E. Mazur) writes:
>|> This should be an easy one guys.  Ive written a simple little 286 assembler
>|> program, and assembled it with Turbo Borland Assembler like this:

...
 
>|> Now I hoped that I would get two link files which I could then link together
>|> using either the Assembler Tlink program or the C tcc program.  The Tlink
>|> program complained that the labels in the C file were not recognised, 

When referring to C labels from within an Assembler routine, ALWAYS
append an underscore character to the beginning.  (For example,
if your assembler must call printf, you should really call _printf.)
Don't ask me why, but this is how it is done in C compilers.


     Ya-Gui Wei
Technical Details
Message-ID: <Bx0BEw.Hyz@usenet.ucs.indiana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yawei
References: <1992Oct28.015555.23775@monu6.cc.monash.edu.au> <1992Oct29.170928.9587@opus40.ix.de>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yawei
From: yawei@bronze.ucs.indiana.edu (~{QG9p~})
Subject: Re: Linking Problems
Message-ID: <Bx0BEw.Hyz@usenet.ucs.indiana.edu>
Keywords: Asm Object file with C Object file
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: bronze.ucs.indiana.edu
Organization: Indiana University
References: <1992Oct28.015555.23775@monu6.cc.monash.edu.au> <1992Oct29.170928.9587@opus40.ix.de>
Date: Sat, 31 Oct 1992 22:20:56 GMT
Lines: 19