• Creative Corner
  • Tips
  • Blog
19 April, 2018

X# IN COSMOS

9series | 0Comment(s)

X#-IN-COSMOS

In our last article, we spoke about TypeScript. Today, we are going to discuss about X# in COSMOS.

What is X#?

X sharp is a high-level assembly language that targets x86 architecture and it is developed by Microsoft .Net. Design of X# is similar to C language but it is used as a low-level programming language. The X# compiler parses lines of code into tokens and compares them with patterns. Finally, matched X# code patterns are translated to Intel x86 assembly, usually for the NASM Netwide compiler.

Where is X# Used?

X# is high-level assembly language and it is used by COSMOS to make operating system developed much easier.

COSMOS abbreviated as C# Open Source Managed Operating System. One can build their own operating system in Visual Studio 2017 by integrating COSMOS to Visual Studio and to test developed operating system virtual machines like Vmware Player is used.

Basics of X# language:

Data-types:

X sharp supports 8 bits value as defined by the byte keyword, 16 bits value as defined by word keyword and 32 bits value as defined by dword keyword.

Literals:

A string literal is surrounded by single quote and backslash(\) is used as escape character. For example,

1

An Integer literal values are in two types, one is decimal and other is hexadecimal. The Dollar sign is used as a prefix in hexadecimal values. For example,

2

Comments:

A comment must appear on its own line. You can’t mix code and comments on a single line. A comment line is one that starts with two consecutive slashes. Whitespaces may be inserted before the comment line. For example :

3

Namespaces:

A namespace is a naming scope that lets you organize your code to avoid naming collision. You declare a namespace by using the namespace keyword and giving it a name. The code inside a namespace has no way to reference or use code or data from another namespace. For Example,

4

Constants:

Constants are declared outside the function and it requires ‘const’ keyword before constant’s name. For Example,

5

Labels:

Labels in X# are mostly equivalent to labels in other assembly languages. Keyword goto is used to jump between labels. For Example,

6

Functions:

Functions are defined by ‘function’ keyword. It does not support formal parameter declaration in the header of function. Conventional parenthesis after function name is not required. Because line-fixed patterns are specified in syntax implemented in code parser, the opening curly bracket can’t be placed on the next line, unlike in many other C-style languages. X# function calls do contain arguments enclosed in parentheses, unlike in function headers. Arguments passed to functions can be registers, addresses, or constants. These arguments are pushed onto the stack in reverse order. For Example,

7

Conclusion

9series has experts with experience in Xsharp. It is a high-level assembly language developed By Microsoft. We are among the top .net mvc development companies in India.  Stay tuned for our next article!

Bibliography:

https://en.wikipedia.org/wiki/Cosmos_(operating_system)#X.23
https://www.xsharp.info/
https://www.x-sharp.net/
https://www.gocosmos.org/
https://www.visualstudio.com
https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html

Recent Posts

  • Top 5 Python Data Science Libraries Must Look in 2021

  • How to Dockerize, Automate the Build and Deployment Process for Flutter?

  • What is Unique in Flask Compare to other Microservices Based Frameworks?

  • How to Dockerize, Automate the build and deployment process for Python(Django)??

  • How to Dockerise, Automate the Build and Deployment Process for .NET MVC?

Categories

  • .Net MVC (3)
  • AI Solutions (2)
  • Amazon DynamoDB (1)
  • Android (24)
  • Android App Developers (2)
  • Android app development (7)
  • Angularjs Development (4)
  • Apple (25)
  • Artificial Intelligence (1)
  • Artificial Intelligence Solutions (3)
  • Beacon Technology (4)
  • Best Christmas Offer (2)
  • Blockchain Technology (2)
  • Cloud Service (2)
  • custom mobile app development services (4)
  • Digital Marketing (9)
  • Django (2)
  • Docker (5)
  • E-Learning Technology (2)
  • Ecommerce (1)
  • Events (4)
  • Flutter app development (1)
  • GDPR (1)
  • Google I/O (1)
  • Graphic Design (12)
  • html5 developers (2)
  • Human Resource (5)
  • Infographics (33)
  • iOS (21)
  • Laravel Development (2)
  • machine development companies in India (1)
  • Machine Learning (4)
  • Marketing (5)
  • mean stack development (1)
  • Microsoft (11)
  • Mobile App Design (3)
  • Mobile App Development (44)
  • Moodle Development (1)
  • next-generation technology (6)
  • Node.js (2)
  • Online Marketing (1)
  • Open Source (11)
  • open source Javascript framework (1)
  • Opening Ceremony (1)
  • Python (3)
  • Python Development (3)
  • Responsive Website Development (9)
  • SaaS App Development (2)
  • Search Engine Optimization (4)
  • Social Media Marketing (2)
  • Software Development Company (2)
  • Technology (44)
  • Testing (11)
  • Top Laravel Development (1)
  • Travel and Hospitality Technology Solution (4)
  • Typescript (1)
  • UI Design Company India (1)
  • UI Design Services (1)
  • UI/UX Design (10)
  • Uncategorized (10)
  • VueJS (3)
  • Web Application Development (8)
  • Website Design (2)
  • Website Development Company (7)

Archives

  • April 2021  (1)
  • March 2021  (1)
  • February 2021  (3)
  • January 2021  (1)
  • December 2020  (1)
  • November 2020  (2)
  • October 2020  (2)
  • September 2020  (1)
  • August 2020  (3)
  • July 2020  (2)
  • June 2020  (4)
  • May 2020  (3)
  • April 2020  (4)
  • March 2020  (4)
  • February 2020  (3)
  • January 2020  (2)
  • December 2019  (6)
  • November 2019  (1)
  • October 2019  (4)
  • September 2019  (4)
  • August 2019  (5)
  • July 2019  (3)
  • June 2019  (5)
  • May 2019  (2)
  • April 2019  (2)
  • February 2019  (5)
  • January 2019  (2)
  • December 2018  (2)
  • November 2018  (3)
  • October 2018  (6)
  • September 2018  (6)
  • August 2018  (7)
  • July 2018  (5)
  • June 2018  (5)
  • May 2018  (6)
  • April 2018  (8)
  • March 2018  (2)
  • November 2017  (1)
  • October 2017  (1)
  • September 2017  (3)
  • August 2017  (2)
  • July 2017  (3)
  • June 2017  (5)
  • May 2017  (4)
  • April 2017  (6)
  • March 2017  (8)
  • February 2017  (6)
  • January 2017  (4)
  • December 2016  (3)
  • November 2016  (4)
  • October 2016  (2)
  • September 2016  (3)
  • August 2016  (3)
  • July 2016  (2)
  • June 2016  (3)
  • May 2016  (3)
  • April 2016  (2)
  • March 2016  (3)
  • February 2016  (3)
  • January 2016  (4)
  • December 2015  (3)
  • November 2015  (4)
  • October 2015  (4)
  • September 2015  (5)
  • August 2015  (2)
  • July 2015  (2)
  • June 2015  (5)
  • May 2015  (3)
  • March 2015  (3)
  • October 2014  (4)
  • September 2014  (9)
  • August 2014  (4)
  • July 2014  (6)
  • June 2014  (1)
  • May 2014  (3)
  • April 2014  (2)
  • January 2014  (1)