Discussion:
[9fans] has anyone wished for
(too old to reply)
erik quanstrom
2012-06-04 15:13:36 UTC
Permalink
"static extern register"?

i know, the syntax doesn't make sense, but if you take "extern register"
to have the standard plan 9 meaning, and static to mean visibility limited
to this file, then there you have it.

- erik
Lucio De Re
2012-06-04 15:31:38 UTC
Permalink
Post by erik quanstrom
i know, the syntax doesn't make sense, but if you take "extern register"
to have the standard plan 9 meaning, and static to mean visibility limited
to this file, then there you have it.
At a glance, I'd say you're looking for inline assembly?

++L
erik quanstrom
2012-06-04 15:32:40 UTC
Permalink
Post by Lucio De Re
Post by erik quanstrom
i know, the syntax doesn't make sense, but if you take "extern register"
to have the standard plan 9 meaning, and static to mean visibility limited
to this file, then there you have it.
At a glance, I'd say you're looking for inline assembly?
no. the meaning of extern register is detailed in /sys/doc/comp.ps.

- erik
Rob Pike
2012-06-04 16:26:38 UTC
Permalink
What happens when two files linked into the same binary both declare
static extern register variables?

-rob
c***@gmx.de
2012-06-04 16:31:08 UTC
Permalink
then the front falls off.

--
cinap
Matthew Veety
2012-06-04 16:37:44 UTC
Permalink
Post by c***@gmx.de
then the front falls off.
--
cinap
And probably the back too.

--
Veety
David Leimbach
2012-06-05 14:35:50 UTC
Permalink
Parts of the side. But the ship has a freaking rail gun!

http://en.wikipedia.org/wiki/Zumwalt_class_destroyer
Post by Matthew Veety
Post by c***@gmx.de
then the front falls off.
--
cinap
And probably the back too.
--
Veety
Continue reading on narkive:
Loading...