c++ separate files? -


my question is, when compile c++ program, why put 1 exe file? file become large. use dll libraries shrink size, or there other files can make? want know how make program uses separate files run.

(edit) don't want in single file. files become large computer handle it, right? there must way separate files. in java, in class file, seems easier , more efficient. drives fat32 can't have file bigger 4 gigabytes, need more broken down program. looked @ game called portal, exe 100kb , has 100 dll files!

to answer question, yes. absolutely can split program separate dll files if you'd like.

i've seen developers compile utility functions separate common dll files can included in other projects references. way objects , methods can be called it.

in hindsight, compiled code relatively small. binary data consumes space: videos, images, models, sounds, etc. although possible , common smaller programs pack these resources directly executable, isn't idea many obvious reasons.

finally, large executables aren't huge problem today's technology. smaller programs, wouldn't sweat it. it's more design development larger project gets.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -