From: SourceForge.net <no...@so...> - 2008-07-29 20:36:11
|
Feature Requests item #1961855, was opened at 2008-05-11 14:12 Message generated for change (Comment added) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=1961855&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Pending Priority: 5 Private: No Submitted By: Andreas Czechanowski (acz) Assigned to: Nobody/Anonymous (nobody) Summary: pic16: use for binary constants (0b00110101) Initial Comment: For porting of source written for the Microchip MCC18, the possibility of writing binary constants starting with 0b... (equivalent to 0x... for hex) is appreciated. Although this does not confirm to C-standards, it might be useful for other architectures as well. Regards, Andreas. ---------------------------------------------------------------------- >Comment By: Borut Raem (borutr) Date: 2008-07-29 22:36 Message: Logged In: YES user_id=568035 Originator: NO I agree with Frieder: this is not an ANSI C standard feature and sdcc tends to be ANSI C compliant. And there is an excellent macro provided by Bernhard, which fills the gap. Borut ---------------------------------------------------------------------- Comment By: Frieder Ferlemann (frief) Date: 2008-07-29 21:27 Message: Logged In: YES user_id=589052 Originator: NO Hi, sorry to say: I don't like this idea: It can be seen as a kind of "vendor lock in" (providing features that an ANSI-C compiler does not have) And (slightly inflamatory) if you like the idea you might have been exposed to this kind of "vendor lock in" :^) There has been related discussion about this (at least) here (sorry, both the search function on Sourceforge and its web interface to list/forums seem disfunctional at the moment, so it seems I cannot provide direct links) 2007-02-17 [Sdcc-user] binary representation of integer? 2007-06-18 [Sdcc-user] How to express binary number in SDCC? 2007-05-29 [sdcc - Open Discussion] binary constant and preprocessor workarounds have been (at least) proposed here: http://sourceforge.net/tracker/index.php?func=detail&aid=882215&group_id=599&atid=350599 http://sourceforge.net/forum/message.php?msg_id=4334535 Please do not apply. ---------------------------------------------------------------------- Comment By: Mauro Giachero (maurogiachero) Date: 2008-07-29 00:30 Message: Logged In: YES user_id=2160854 Originator: NO Addressed by patch 2030780 at http://sourceforge.net/tracker/index.php?func=detail&aid=2030780&group_id=599&atid=300599 Mauro Giachero ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=1961855&group_id=599 |