Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing, Yandex, Yahoo!

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
613
bastian
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,868
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 >>