Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!motcsd!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.sys.hp Subject: Re: 9000/835 loader and assembler problems Message-ID: <1340054@hpclscu.HP.COM> Date: 2 Jun 89 21:28:15 GMT References: <14870@comp.vuw.ac.nz> Organization: Hewlett-Packard Calif. Language Lab Lines: 31 > I've got the following declaration C declaration: > > extern struct character character_table[]; > > which KCl indexes with a character. Because characters are signed on > some machines, the space for the array is defined in an assembler file > > .globl _character_table > .space 1024 > _character_table: > .space 1024 > > in the appropriate syntax for the particular machine. Note: the label is in > the middle of the space. I've been able to put this in the DATA > subspace but not in the BSS subspace. Any thoughts on how to get this in > the BSS subspace? .space $PRIVATE$ ; this is how you specify spaces .subspa $BSS$ ; this is how you specify subspaces _character_table .comm 1024 Better still, consider the following: A source file called chartab.c, whose contents are the single line char _character_table[1024]; cc -c this file, and you get an object file that has a "common definition" for your space. Portably. ---- Shankar.