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. General Programming
  3. C#
  4. How to reduce size?

How to reduce size?

Scheduled Pinned Locked Moved C#
data-structureshelptutorialquestion
6 Posts 4 Posters 0 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.
  • G Offline
    G Offline
    GetOn GetGoing
    wrote on last edited by
    #1

    I have used String array and integer for one console application. But size of the executable is 16kb. can u help me in this view.

    M L 2 Replies Last reply
    0
    • G GetOn GetGoing

      I have used String array and integer for one console application. But size of the executable is 16kb. can u help me in this view.

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

      Can you explain more the relation of size of executable file with the use of String Array and integer in your applicattion? :confused: Mazy "Improvisation is the touchstone of wit." - Molière

      G 1 Reply Last reply
      0
      • M Mazdak

        Can you explain more the relation of size of executable file with the use of String Array and integer in your applicattion? :confused: Mazy "Improvisation is the touchstone of wit." - Molière

        G Offline
        G Offline
        GetOn GetGoing
        wrote on last edited by
        #3

        I am using a string array which is having 13 constants and i am comparing with other 13 constants. When i built that executable file its size is 16kb but i feel 16kb is very costly. Please explain me Regards,

        C 1 Reply Last reply
        0
        • G GetOn GetGoing

          I am using a string array which is having 13 constants and i am comparing with other 13 constants. When i built that executable file its size is 16kb but i feel 16kb is very costly. Please explain me Regards,

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          GetOn&GetGoing wrote: When i built that executable file its size is 16kb but i feel 16kb is very costly. Is it? :confused: Then perhaps you should consider using something other than the .NET Framework. I have done some experiments and the smallest application I could build was 16kb. Also consider that when your application is running it will be loading .NET Framework DLLs. The 16kb size of this executable is a drop in the ocean compared with the size of the Framework. --Colin Mackay--

          EuroCPian Spring 2004 Get Together[^] "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

          M 1 Reply Last reply
          0
          • C Colin Angus Mackay

            GetOn&GetGoing wrote: When i built that executable file its size is 16kb but i feel 16kb is very costly. Is it? :confused: Then perhaps you should consider using something other than the .NET Framework. I have done some experiments and the smallest application I could build was 16kb. Also consider that when your application is running it will be loading .NET Framework DLLs. The 16kb size of this executable is a drop in the ocean compared with the size of the Framework. --Colin Mackay--

            EuroCPian Spring 2004 Get Together[^] "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

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

            Yah, they are really small in size. The only time I got smaller than this, somtimes in VC6 which I used some win32 applicationns with some specific compile attribute which lead to very small size like 3 to 5 Kb. :) Mazy "Improvisation is the touchstone of wit." - Molière

            1 Reply Last reply
            0
            • G GetOn GetGoing

              I have used String array and integer for one console application. But size of the executable is 16kb. can u help me in this view.

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #6

              Look at the compiler options. csc -o+ -debug- -filealign:512 leppie::AllocCPArticle("Zee blog");
              Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

              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