|
PowerBASIC Forums
![]() Programming
![]() InLine Assembler (Page 3)
|
This topic is 3 pages long: 1 2 3 |
next newest topic | next oldest topic |
| Author | Topic: InLine Assembler |
|
Stavros A Petridis Member |
Bern, Brilliant idea,but i am not sure if this technique is cross-platform safe (pb/cc 2.0 ,2.11 3.0 - pb/dll 6.11 etc) Maybe PB will change (or has changed between versions) the way that assigns register vars to specific cpu registers. I am using this routine with pb/cc and pb/dll. Any thoughts ? Regards Stavros ------------------ IP: Logged |
|
Bern Ertl Member |
Excellent question Stavros. I don't have an answer. We'll need someone from PB to confirm/answer if it is safe to rely on the current register assignments for future versions of the compiler. I don't have PB/CC currently, so I haven't tested with it. You ------------------ IP: Logged |
|
Stavros A Petridis Member |
Bern, The results of your test program are the same in PB/CC 2.11 too. My fear remains that some day there will be an Episode 9 that will change this . ![]() Regards Stavros
[This message has been edited by Stavros A Petridis (edited May 30, 2002).] IP: Logged |
|
Tom Hanlin Member |
The way REGISTER assignments are handled may change in the future. It's safe technique, if you can rely on using a specific compiler version-- that is, we're obviously not going to change the code for PB/DLL 6.11, for example. To put it another way, the problem lies in "future-proofing". Considering that they're likely to make no appreciable difference ------------------ IP: Logged |
|
Bern Ertl Member |
Thanks Tom. I'll be sure to test PB7 and future compilers for any changes. ------------------ IP: Logged |
This topic is 3 pages long: 1 2 3 All times are EasternTime (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1999-2005 PowerBASIC, Inc. All Rights Reserved.