<?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>__C51__ undefined in uV4?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29864/__c51__-undefined-in-uv4</link><description> 
I wrote and debugged a project on a workstation running uV3 
(V3.30a) a while back. It contains a file that must be 
shared with other (von Neumann) processors that do not use 
Keil development tools and contains a pre-processor 
construct for the definition</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: __C51__ undefined in uV4?</title><link>https://community.arm.com/thread/61795?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2013 08:21:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a1d4f823-a5bd-451e-9810-bc8687ce52d5</guid><dc:creator>Gary Lynch</dc:creator><description>&lt;p&gt;&lt;p&gt;
Cancel this request!&lt;/p&gt;

&lt;p&gt;
The problem was an older workaround to the same problem that I
failed to remove when I created the __C51__ workaround. My
apologies.&lt;/p&gt;

&lt;pre&gt;
============================================================
Gary Lynch    printf(&amp;quot;lynchg%cstacoenergy%ccom&amp;quot;, 55+9, 55-9)
============================================================
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: __C51__ undefined in uV4?</title><link>https://community.arm.com/thread/68185?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2013 08:01:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c033f05e-2c51-49bb-9091-c15ca08ad1cb</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Unrelated to the existence of __C51__ but one thing to consider
when using the preprocessor to add/strop &amp;quot;code&amp;quot; is to write:&lt;/p&gt;

&lt;pre&gt;
#if defined(__C51__)
    #define CODE code
#else
    #define CODE
#endif
&lt;/pre&gt;

&lt;p&gt;
Then you can have variables like:&lt;/p&gt;

&lt;pre&gt;
struct unsMsgSpec const CODE sysParmTable[] = {
    ...
};
&lt;/pre&gt;

&lt;p&gt;
So no need to duplicate the line. So only one place to change if
you change the name of the data type or the name of the variable.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>