> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of piclist@xargs.com > Sent: Thursday, February 23, 2006 4:08 PM > To: Microcontroller discussion list - Public. > Subject: RE: [PIC] 2 questions about 18f4550 > > On Thu, 23 Feb 2006, William Killian wrote: > > > An extension could be something like 'no_return' as in use entry instead > > of no-return for a function that starts off the whole processor for > > reboot or any task that can not return > > Any reasonable compiler will do that automatically, without any > special keywords. Boy are people getting more and more sure of compiler technologies these days. I'm not so overly confident especially as languages that started simple like C continue to get more elaborate with each new standards release. But please name any compiler that will automatically not generate a return statement at the end of a function. I don't know how the PIC compilers handle automatic variables but they are 'created' and 'destroyed' at the beginning and end of a function so would there be unreachable code put in to fix the 'stack' as well? And these compilers, which are indeed getting better at many things but with much angst along the way, could use such a construct to generate warnings and/or errors for simple things like a return statement in the function of a path to the end of the function. ------------------------------------- Notice of Confidentiality ---------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@vgt.net. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist