Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 1996 10:11:18 -0800
From:      John Polstra <jdp@polstra.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: src/lib/libc/sys/Makefile.inc: proposed change 
Message-ID:  <199601181811.KAA11615@austin.polstra.com>
In-Reply-To: Your message of "Thu, 18 Jan 1996 17:58:40 %2B1100." <199601180658.RAA32330@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce wrote:

> >character in an identifier.  So it was interpreting `$FOO' as an
> >identifier, rather than as two separate tokens.  This is never correct
> >in i386 assembly language, since `$' is an operator that means
> >"interpret as a literal".
> 
> This only happens if the wrong cpp is invoked.  /usr/bin/cpp is
> essentially `/usr/libexec/cpp -traditional' ...

Oh!  I get it now.  I hadn't realized that /usr/bin/cpp is a shell
script that invokes /usr/libexec/cpp with some extra arguments.  I just
assumed it was a link to /usr/libexec/cpp.

Bruce also wrote:

>  	movl	$ FOO,%eax
> 
> works, but is ugly and would require too many source code changes.

Another good idea!  For my particular case, it only requires one source
code change.

[ John slinks off into the corner, embarrassed, tail between his
  legs, leaving src/lib/libc/sys/Makefile.inc untouched. ]

Thanks for straightening me out!  I'm glad I asked.

-- John



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601181811.KAA11615>