Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. 16,384+ local varibles!!! WTF!?

16,384+ local varibles!!! WTF!?

Scheduled Pinned Locked Moved The Back Room
c++questioncareer
7 Posts 6 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rickard Andersson20
    wrote on last edited by
    #1

    [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

    M R B T 4 Replies Last reply
    0
    • R Rickard Andersson20

      [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

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      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

      R 1 Reply Last reply
      0
      • M Mazdak

        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

        R Offline
        R Offline
        Rickard Andersson20
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • R Rickard Andersson20

          [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

          R Offline
          R Offline
          Roger Allen
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • R Rickard Andersson20

            [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

            B Offline
            B Offline
            brianwelsch
            wrote on last edited by
            #5

            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"

            J 1 Reply Last reply
            0
            • B brianwelsch

              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"

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • R Rickard Andersson20

                [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

                T Offline
                T Offline
                Terry ONolley
                wrote on last edited by
                #7

                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!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups