Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!vuwcomp!andrew From: andrew@comp.vuw.ac.nz (Andrew Vignaux) Newsgroups: comp.sys.hp Subject: Re: 9000/835 loader and assembler problems Message-ID: <14880@comp.vuw.ac.nz> Date: 5 Jun 89 01:03:04 GMT References: <14870@comp.vuw.ac.nz> <1340054@hpclscu.HP.COM> Reply-To: andrew@comp.vuw.ac.nz (Andrew Vignaux) Organization: Comp Sci, Victoria University, Wellington, New Zealand. Lines: 34 In article <1340054@hpclscu.HP.COM> shankar@hpclscu.HP.COM (Shankar Unni) writes: >In article <14870@comp.vuw.ac.nz> I wrote: >> .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 >Shankar. I'm afraid that's not what I meant (I guess my paragraph was ambiguous). What I need is a "common" definition that is in the MIDDLE of the data, so the program can use a signed char to access it (pretty wierd huh!). I can't get this to happen in the BSS subspace. BTW: the 800 assembler requires a label for the .COMM directive. On a related issue (yes still KCl), is there any way to use the value of $global$ in a C routine? (The C compiler doesn't like the $). I could get an assembler routine to put the value in a global, but that means a memory dereference every time a certain macro is used (rather than constant folding done at compile/link time). I'll probably just hard code 0x40000000. Andrew -- Domain address: andrew@comp.vuw.ac.nz Path address: ...!uunet!vuwcomp!andrew