www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/02/13:59:07

Xref: news2.mv.net comp.os.msdos.djgpp:3351
From: malcolm AT manawatu DOT gen DOT nz (Malcolm Taylor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: QUAKE and DJGPP
Date: Wed, 01 May 1996 21:28:49 GMT
Organization: Grafik Software
Lines: 17
Message-ID: <4m8omn$fc9@news.manawatu.gen.nz>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960415152629 DOT 2810A-100000 AT mozcom2 DOT mozcom DOT com><4llo8a$ojv AT labrat DOT sedona DOT net> <4lqoo7$4ka AT newsserv DOT grfn DOT org> <4lrngl$1mu AT orb DOT direct DOT ca> <4m23pl$58n AT bagan DOT srce DOT hr>
Reply-To: malcolm AT manawatu DOT gen DOT nz
NNTP-Posting-Host: malcolm.manawatu.gen.nz
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

sime AT fly DOT cc DOT fer DOT hr (S. Mikecin) wrote:
>: DJGPP is awesome and I have had no problems with it. It also produces
>: slightly faster code than Watcom on average.
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>Maybe... but how do I force DJGPP to use register calling convention?

You can force all the functions in your code to be register called
(although this means not using the library) by the command line switch
-mregparam=3. Although a better method is to use the function
attribute: __attribute__ ((regparam(3))) if I remember right. Check
the info files for gcc under command line args and function
attributes.

Malcolm


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019