On Tue, 2003-10-07 at 10:21, Bryan Murdock wrote: > Sorry, I was thinking hardware, where theoretically you could come up > with whatever addressing scheme you want, but the most efficient schemes > use _all_ the possible combinations of the bits you have available for > your address, including 0 (or 00, or 000, etc.).
Well, to follow your hardware idea, there is one's complement and two's complement notation for integers. One is superior because it makes math easier. Both could be used. In fact the originial cray's used one's complement. Took extra circuitry to take into account the fact that there are 2 zeros in the integer space, though. Anyway, counting from zero for addresses is just superior because it makes the math consistent. Michael > > As far as offsetting in a program, you could theoretically start with 1 > and have the compiler know what to do with it. In perl there is an > option (though it's use is highly discouraged) to have array offsets > begin at 1. That's just plain weird though ;) > > Bryan > > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list -- Michael L Torrie <[EMAIL PROTECTED]> ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
