<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>binary notation</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/20027/binary-notation</link><description> I just started using keil c51 compiler. 
Since I know that keil is compatible to ANSI-C 
I want to know if there is an ANSI-C 
compatible notation for binary numbers. 
 
Like when I want to write the number in hexadecimal notation 
I use the prefix </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: binary notation</title><link>https://community.arm.com/thread/98096?ContentTypeID=1</link><pubDate>Mon, 15 May 2006 14:41:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:82681bfe-c9ab-47ec-9fbb-faaf3e761794</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;PS: there are posts here or on 8052.com about free Borland C compilers for the PC which will allow you to work through the examples&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
One thing to beware of is that they&amp;#39;re probably C++ compilers, and/or C99.&lt;br /&gt;
&lt;br /&gt;
Most embedded &amp;#39;C&amp;#39; compilers (including C51) are the &amp;quot;original&amp;quot; ANSI &amp;#39;C&amp;#39;&lt;br /&gt;
&lt;br /&gt;
Both C++ and C99 will accept &amp;quot;original&amp;quot; ANSI &amp;#39;C&amp;#39;, but will let you get away with things that a true &amp;quot;original&amp;quot; ANSI &amp;#39;C&amp;#39; does not allow.&lt;br /&gt;
&lt;br /&gt;
There&amp;#39;s often an option to enable &amp;quot;pure ANSI&amp;quot; mode...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: binary notation</title><link>https://community.arm.com/thread/87728?ContentTypeID=1</link><pubDate>Fri, 12 May 2006 10:06:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:59191092-3265-4906-a1c5-d0f435d64963</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;Do not make the mistake of buying another &amp;quot;C and &amp;#39;51&amp;quot; book.&lt;br /&gt;
&lt;br /&gt;
Those books do NOT teach you C, they are &amp;quot;the 51&amp;#39; for programmers already versed in C&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
A good self-teach book would be Kochan: &amp;quot;Programming in ANSI C&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
It is so much easier to learn the C fundamentals on the PC than on a &amp;#39;51.&lt;br /&gt;
&lt;br /&gt;
PS: there are posts here or on 8052.com about free Borland C compilers for the PC which will allow you to work through the examples&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: binary notation</title><link>https://community.arm.com/thread/46062?ContentTypeID=1</link><pubDate>Fri, 12 May 2006 10:02:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f0008111-c037-4003-b5c9-4486018ff269</guid><dc:creator>Karl Hamsher</dc:creator><description>&lt;p&gt;&lt;a href="http://www.8052.com/users/dhenry/binconst.h" target="_blank"&gt;http://www.8052.com/users/dhenry/binconst.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: binary notation</title><link>https://community.arm.com/thread/46063?ContentTypeID=1</link><pubDate>Fri, 12 May 2006 03:21:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8275c541-6203-4cb9-b597-d02aaf3d31d9</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I want to know if there is an ANSI-C compatible notation for binary numbers.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
There is a very simple and straightforward answer to this:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NO!&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;I just started using keil c51 compiler.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
It sounds like you have just started using any form of &amp;#39;C&amp;#39;?&lt;br /&gt;
&lt;br /&gt;
The &amp;#39;C&amp;#39; programming language has never supported a binary notation, so no decent textbook would have given you the idea that it did.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;it would be nice to know which notation to use for octal number systems&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Now this &lt;i&gt;is&lt;/i&gt; absolutely standard &amp;#39;C&amp;#39; stuff - see any good &amp;#39;C&amp;#39; textbook.&lt;br /&gt;
&lt;br /&gt;
It sounds like you really need to get yourself a good &amp;#39;C&amp;#39; textbook, and actually take some systematic approach to learning the language&lt;br /&gt;
&lt;br /&gt;
Here are some book lists:&lt;br /&gt;
&lt;a href="http://www.keil.com/books/8051books.asp"&gt;http://www.keil.com/books/8051books.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.8052.com/books.phtml" target="_blank"&gt;http://www.8052.com/books.phtml&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If possible, you should do a taught &amp;#39;C&amp;#39; training course.&lt;br /&gt;
If you say where you are, people may be able to recommend one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>