C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #31  
Old October 16th, 2007, 04:55 PM
LittleGrin LittleGrin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 384 LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level)LittleGrin User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Days 3 h 14 m 49 sec
Reputation Power: 259
Schildt is rather notorious for being an author who writes incorrect material in an understandable manner. He is actually, however, somewhat correct in this case.

Freestanding environments are, by their nature, typically written to support applications on a specific machine type (eg specific hardware, specific operating system, etc). If one cares at all about portability, a freestanding environment will not be targeted.

Technically, some compilers that target windows development may be viewed as a hybrid of hosted and freestanding implementations (usually with compiler settings to choose which mode it operates in). For example, compilers targeting development of windows applications support winmain(), do things using the dedicated win32 API, etc are formally freestanding environments. Flick an IDE or compiler setting, however, and the compiler supports console applications(with main(), etc) so targets a hosted environment.

The requirement, with respect to main(), is that a hosted environment will support either of two forms of main() returning int as the first function called for the application. That does not prevent an implementation from supporting other entry points (eg some environments support void main() as well) but such extensions will not be used by developers who care about portability.

Reply With Quote
  #32  
Old October 16th, 2007, 10:53 PM
sizablegrin's Avatar
sizablegrin sizablegrin is online now
Crab
Click here for more information.
 
Join Date: Jun 2005
Posts: 5,769 sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 8 h 32 m 38 sec
Reputation Power: 4469
Let me add somewhat to that. Perhaps 90% of all computer systems delivered today do not run in an environment that the average programmer considers typical (Windows and various Unix clones).

The "typical" keyboard, and the "typical" display are nowhere to be found. Languages like C and C++ came to fruition before these atypical "typical" systems evolved. They chose (wisely, I think) to ignore implementation specific approaches, other than by accomodating them through proprietary run-time libraries. This makes some stuff (like clearing keyboard buffers, which might not even exist) tough to implement. Dealing with those problems requires an intimate knowledge of the underlying system. Such solutions are NOT portable.

Portability in the real world is a chimera. It is somewhat like the ideal spouse -- something to be sought after, but rarely gained.
__________________
Write no code whose complexity leaves you wondering what the hell you did.
Politically Incorrect DaWei on Pointers Grumpy on Exceptions

Reply With Quote
  #33  
Old September 26th, 2009, 11:19 PM
cdh473 cdh473 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Location: Georgia, USA
Posts: 12 cdh473 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 7 h 40 m 16 sec
Warnings Level: 5
Reputation Power: 0
Send a message via Yahoo to cdh473 Send a message via Skype to cdh473 Send a message via XFire to cdh473
MySpace
In 0.1, please add Code::Blocks, it's my favorite IDE/compiler
Oh, and please, in the part for conversion to hex/octal, please add a description for how to do it with iomanip.
Edit: I posted this for other people's good, not my own, since I already know how to do this.
Comments on this post
jwdonahue disagrees: You should have started your own thread for these requests instead of poluting this one.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Commonly Asked C/C++ Questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek