This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Oops! Note that foo_data is a global variable... b.g. William Gatliff wrote: > Guys: > > I have a need for register-relative data access, i.e. the data > equivalent to PC-relative code addressing. > > I don't see right offhand the gcc switches to do this, although it seems > like something that GNU would support... > > For example, when I do this: > > return foo_data; > > then, rather than this: > > mov.l _foo_data, d0 > > I need this: > > mov.l 12(a4), d0 > > [Note that I'm a bit rusty on my 68k asm. I hope my intent is at least > clear, tho'.] > > Any ideas? I know the MRI 68k compiler can do this... > > Thanks! > > b.g. > > -- > William A. Gatliff > Senior Design Engineer > Komatsu Mining Systems > To teach is to learn. > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com -- William A. Gatliff Senior Design Engineer Komatsu Mining Systems To teach is to learn. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |