Someone else will have to weigh in on that; I don't know. But let's suppose so.
I'll still bet that it's "loaded". By that, I mean read in in it's entirety and the P-code mapped to an address space. Each BASIC structure with decision logic has to produce branches, and each branch point will produce a jump to an [internally] generated label. The "loader" both assigns addresses to these labels and fills in the jump addresses accordingly. This process is just the same for P-code as it would be for assembly or machine code. -Keith ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allen E. Elwood Sent: Wednesday, September 28, 2005 1:46 PM To: [email protected] Subject: RE: [U2] Good Programming Practice Question......... > But from what I understand Unidata does not produce compiled > object code. > It creates compiled P-Code, which is then interpreted at run > time. True? > False? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Keith > W. Roberts > Sent: Wednesday, September 28, 2005 13:22 > To: [email protected] > Cc: [EMAIL PROTECTED] > Subject: RE: [U2] Good Programming Practice Question......... > > > ----Original Message---- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Gordon J Glorfield > Sent: Wednesday, September 28, 2005 10:34 AM > To: [email protected] > Cc: [EMAIL PROTECTED]; [email protected] > Subject: RE: [U2] Good Programming Practice Question......... > >> I prefer alphanumeric labels for subroutines. The label >> should give some >> clue as to the function of the subroutine. The subroutines >> should be in >> frequency of use order with the most commonly used closer to >> the top of >> the program. Subroutines that are used once in a program (file >> opens, variable initialization, etc...) are located near the bottom. >> This method is suppose to improve the efficiency of the program and >> may not be valid anymore. > > Correct. There is absolutely no reason to order code by > frequency of usage > in a non-interpretive (ie, compiled) language. When the > object is loaded > into memory, relocatable jumps are resolved, so it's as > efficient to get to > the last line as the first. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
