Keil Logo

Global variables

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Chris Hines
Posted
11-Jan-2007 22:11 GMT
Toolset
C251
New! Global variables

Keil MicroVision is new to me and I cannot get the variables in one function to be global because there is no "PUBLIC" command. How do I make it so a variable can be changed by any function. BTW I'm programming in C#. Any help is much appreciated.

Read-Only
Author
barry gordon
Posted
11-Jan-2007 22:18 GMT
Toolset
C251
New! RE: Global variables

Keil has a C# compiler??? Where are you getting the C# runtime package???

Read-Only
Author
Andy Neil
Posted
12-Jan-2007 00:04 GMT
Toolset
C251
New! Totally in the wrong ballpark!

"C# is a type-safe, component-based, high-performance language that is designed for the Microsoft .NET framework."
http://www.ondotnet.com/pub/a/dotnet/2005/10/03/what-is-csharp.html

You have absolutely no chance whatsoever of getting that to run on an 80251 - let alone an 8051.
It doesn't even support ARM, so far as I know.

"Keil C compilers are based on C90. [Keil] added some language extensions as practical concessions to the architectural peculiarities of the microcontrollers [they] support and the needs of embedded systems programmers."
http://www.keil.com/support/docs/1893.htm

That certainly doesn't include anything to do with C#, .NET, or even Windows!

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.