Message from discussion
Optimized gcc function calling assembler.
Received: by 10.66.84.199 with SMTP id b7mr1340983paz.11.1347032089074;
Fri, 07 Sep 2012 08:34:49 -0700 (PDT)
Path: t10ni10245476pbh.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.csd.net!news.csd.net.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 07 Sep 2012 10:34:48 -0500
Date: Fri, 07 Sep 2012 09:34:48 -0600
From: Dave Pitts <dpi...@cozx.com>
Reply-To: dpi...@cozx.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
Newsgroups: gnu.gcc.help
Subject: Optimized gcc function calling assembler.
Message-ID: <-IadnaOVzaGFidfNnZ2dnUVZ_oydnZ2d@csd.net>
Lines: 16
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 205.240.12.228
X-Trace: sv3-ik8AulzgsQ6jEZ8cczyV9wu4LYth2pjF6jgxm8X3XnbJfBMeghkaii8WnSEdcFFqEDmf7lClmhIaz1x!cMHfmznu00vj9tdlACyYVC8qPyVXscjQCVEzrRQGJ+Ar1380hZPP6AtDrLQ3knJycyY63zM/M+Xc!vAE=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 1719
X-Original-Bytes: 1658
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello:
I've been working with a third party supplied assembler function that seems to
have issues when being called from optimized gcc code. I get spurious values in
calling function. It appears that the assembler function is using registers that
the gcc code is expecting to not change. Is there a way, in gcc, to protect
against the assembler function from doing immoral acts.... The system is an
x86_64 based Linux system. I don't know the assembler language for this system
very well.
Thanks in advance....
--
Dave Pitts PULLMAN: Travel and sleep in safety and comfort.
dpi...@cozx.com