Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » File includes
Forum Rules | Mark all | Recent Posts

File includes
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 2, 2005, 9:57 am
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

Since this isn't codebase specific I placed it here. Anyways....

If I'm wrong in this, please let me know. Instead of including all the system files in each .c file, could we not just combine them all together into mud.h and make things easier on the whole? I know this would decresse the size of .o files, but would it do the same for the exe?
       
Post is unread #2 Sep 2, 2005, 1:54 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Wouldn't doing that make each of the system files included throughout all the various .c files be included in every .o file instead of just the ones they already are? My understanding of file includes is that basically you're making the compiler include a copy of the contents of each include as if it was part of that .c file, if we move them all to mud.h and then include mud.h in each .c file, won't each .c file be read by the compiler as including ALL the system files we're otherwise including in any of the .c files currently, thus making the .o files and, subsequently, the executable much larger? Or do I have the wrong take on this altogether?
       
Post is unread #3 Sep 2, 2005, 2:07 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

lol it depends on alot of things, I have seen it decrease the exe by moving them and have seen it increase it alot by moving them so just depends on how many files include it already etc...
       
Pages:<< prev 1 next >>