16,384+ local varibles!!! WTF!?
-
[quote] At my previous job, we were porting a UNIX system to Windows NT using Microsoft VC++. A colleague of mine, that was in the process of porting his portion of the code, came to me, looking really upset. * Colleague: "Hey! I hate these Microsoft guys! What a rotten compiler! It only accepts 16,384 local variables in a function!" [/quote] :wtf::wtf: Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
-
[quote] At my previous job, we were porting a UNIX system to Windows NT using Microsoft VC++. A colleague of mine, that was in the process of porting his portion of the code, came to me, looking really upset. * Colleague: "Hey! I hate these Microsoft guys! What a rotten compiler! It only accepts 16,384 local variables in a function!" [/quote] :wtf::wtf: Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
-
Rickard Andersson19 wrote: It only accepts 16,384 local variables in a function!" Oh my dear , what a nice guy is your colleague. Mazy "Man is different from animals in that he speculates, a high risk activity." - Edward Hoagland
I perhaps would say that it's not a colleague to me :) Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
-
[quote] At my previous job, we were porting a UNIX system to Windows NT using Microsoft VC++. A colleague of mine, that was in the process of porting his portion of the code, came to me, looking really upset. * Colleague: "Hey! I hate these Microsoft guys! What a rotten compiler! It only accepts 16,384 local variables in a function!" [/quote] :wtf::wtf: Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
Rickard Andersson19 wrote: It only accepts 16,384 local variables in a function! [sarcasm]Is that all? When I were a lad, we used 1057 local variables per function.[/sarcasm] Roger Allen - Sonork 100.10016 Strong Sad: Clever I am? Next to no one. Undiscovered and soggy. Look up. Look down. They're around. Probably laughing. Still, bright, watery. Listed among the top. Ten. Nine. Late night. Early morn. Early mourn. Now I sleep.
-
[quote] At my previous job, we were porting a UNIX system to Windows NT using Microsoft VC++. A colleague of mine, that was in the process of porting his portion of the code, came to me, looking really upset. * Colleague: "Hey! I hate these Microsoft guys! What a rotten compiler! It only accepts 16,384 local variables in a function!" [/quote] :wtf::wtf: Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
Is it a spreadsheet app? // define table of 1000 X 100 cells. int cell00000; int cell00001; int cell00002; int cell00003; ... int cell99999; BW CP Member Homepages
"Miraculous you call it babe? You ain't seen nothing yet.
They got Pepsi in the Andes. They got McDonalds in Tibet" -
Is it a spreadsheet app? // define table of 1000 X 100 cells. int cell00000; int cell00001; int cell00002; int cell00003; ... int cell99999; BW CP Member Homepages
"Miraculous you call it babe? You ain't seen nothing yet.
They got Pepsi in the Andes. They got McDonalds in Tibet"Yeah, and then do some funky voodoo such as:
int** matrix;
___asm mov matrix, sp + some_offset
matrix[0][0] = 4;
matrix[1][0] = 5;
matrix[2][0] = matrix[0][0] + matrix[1][0];And WHAM! we've executed A1 = 4, A2 = 5, and A3 = A1 + A2 :cool: If there's a stack, then why not use it? ;) -- Din mamma.
-
[quote] At my previous job, we were porting a UNIX system to Windows NT using Microsoft VC++. A colleague of mine, that was in the process of porting his portion of the code, came to me, looking really upset. * Colleague: "Hey! I hate these Microsoft guys! What a rotten compiler! It only accepts 16,384 local variables in a function!" [/quote] :wtf::wtf: Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
Wouldn't a 3-dimensional array of [26][26][26] be more than 16,384? I guess declaring a 3-D array of those dimensiuons within a local function is just simply wrong and whoever did it would be an idiot. Screw vectors and spreadsheets!
Glano perictu com sahni delorin!