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. IT & Infrastructure
  4. Small footprint, what's that ?

Small footprint, what's that ?

Scheduled Pinned Locked Moved IT & Infrastructure
questionperformancetutorialannouncement
8 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.
  • M Offline
    M Offline
    Maxwell Chen
    wrote on last edited by
    #1

    Sometimes I saw some descriptions to certain 3rd party libraries use such term: "small footprint just 24K memory", or something the like. What is "footprint" ? And how to measure it ? Maxwell Chen People say "No news is good news". Then, no code is good code!?

    A 1 Reply Last reply
    0
    • M Maxwell Chen

      Sometimes I saw some descriptions to certain 3rd party libraries use such term: "small footprint just 24K memory", or something the like. What is "footprint" ? And how to measure it ? Maxwell Chen People say "No news is good news". Then, no code is good code!?

      A Offline
      A Offline
      Andrew Peace
      wrote on last edited by
      #2

      A small 'footprint' refers to the amount of disk space and/or memory usage that the program uses, i.e. Internet Explorer has a large footprint because installing it takes up a lot of space, whereas something like Windows PowerToys has a small footprint because they use relatively little space and memory. As to measuring it, you can't really, it's a non-scientific term. HTH. -- Andrew.

      M 1 Reply Last reply
      0
      • A Andrew Peace

        A small 'footprint' refers to the amount of disk space and/or memory usage that the program uses, i.e. Internet Explorer has a large footprint because installing it takes up a lot of space, whereas something like Windows PowerToys has a small footprint because they use relatively little space and memory. As to measuring it, you can't really, it's a non-scientific term. HTH. -- Andrew.

        M Offline
        M Offline
        Maxwell Chen
        wrote on last edited by
        #3

        Then, how did they make it? SQLite See the 4th note in section feature. Maxwell Chen People say "No news is good news". Then, no code is good code!?

        D A 2 Replies Last reply
        0
        • M Maxwell Chen

          Then, how did they make it? SQLite See the 4th note in section feature. Maxwell Chen People say "No news is good news". Then, no code is good code!?

          D Offline
          D Offline
          Dana Holt
          wrote on last edited by
          #4

          Maxwell Chen wrote: Then, how did they make it? SQLite See the 4th note in section feature. That note says 20K "LINES" of C code which, of course, refers to the source code. It isn't the size of the binary or the memory usage of the component. -- Dana Holt Xenos Software

          1 Reply Last reply
          0
          • M Maxwell Chen

            Then, how did they make it? SQLite See the 4th note in section feature. Maxwell Chen People say "No news is good news". Then, no code is good code!?

            A Offline
            A Offline
            Andrew Peace
            wrote on last edited by
            #5

            They've based their assumption upon the amount of source code in the project - i.e. less than 20,000 lines, which is not that big really, and might compile to less than a 400K executable. -- Andrew.

            M 1 Reply Last reply
            0
            • A Andrew Peace

              They've based their assumption upon the amount of source code in the project - i.e. less than 20,000 lines, which is not that big really, and might compile to less than a 400K executable. -- Andrew.

              M Offline
              M Offline
              Maxwell Chen
              wrote on last edited by
              #6

              Andrew Peace wrote: less than 20,000 lines, which is not that big really, and might compile to less than a 400K executable. Then, why 20,000 lines compiles to 400,000 bytes executable? Maxwell Chen People say "No news is good news". Then, no code is good code!?

              A R 2 Replies Last reply
              0
              • M Maxwell Chen

                Andrew Peace wrote: less than 20,000 lines, which is not that big really, and might compile to less than a 400K executable. Then, why 20,000 lines compiles to 400,000 bytes executable? Maxwell Chen People say "No news is good news". Then, no code is good code!?

                A Offline
                A Offline
                Andrew Peace
                wrote on last edited by
                #7

                Well, it really depends on several factors: 1) whether speed or size optimisation was performed 2) whether there are many resources to be compiled as well (if you are included a lot of bitmaps in the binary you can get massive executables with hardly any code at all) 3) what other static libraries are linked with the executable. HTH, -- Andrew.

                1 Reply Last reply
                0
                • M Maxwell Chen

                  Andrew Peace wrote: less than 20,000 lines, which is not that big really, and might compile to less than a 400K executable. Then, why 20,000 lines compiles to 400,000 bytes executable? Maxwell Chen People say "No news is good news". Then, no code is good code!?

                  R Offline
                  R Offline
                  Roger Wright
                  wrote on last edited by
                  #8

                  Maxwell Chen wrote: Then, why 20,000 lines compiles to 400,000 bytes executable? A single line of source code always results in more than one line of executable binary instruction code. Even a simple GOTO from BASIC translates into at least 5 bytes of executable - a JMP code, and 4 bytes of address. More complex functions can result in much larger blocks.

                  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