Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- check if 32 or 64-bit system using live CD
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-21-2011 06:31 PM
03-21-2011 06:31 PM
Re: check if 32 or 64-bit system using live CD
Just as you would normally :) .
If you have internet connection get fasm from the net, else put it in a usb drive and mount it or prepare a live CD with the above program in it. Search the internet for remastering or ( knoppix remastering ).
Or else you can use the .as assembler that comes with most of the Linux distributions. I am more familiar with intel syntax than at & t syntax and fasm is the assembler i have been using lately :).
With as assembler you need to reverse the operands , add a suffix to indicate size , replace [] with () , use % for registers etc , etc.. .pain IMHO.
Another thing you can do is make use of GCC inline assembly . I am not a big fan of inline assembly, I prefer writing .asm modules in assembly itself and later linking separately. That way you keep architecture specific code out from your C code .
GNU as is more or less written as a compiler back end where the compiler always feeds it with correct code , not really suitable for hand coding.
--Lucifer
If you have internet connection get fasm from the net, else put it in a usb drive and mount it or prepare a live CD with the above program in it. Search the internet for remastering or ( knoppix remastering ).
Or else you can use the .as assembler that comes with most of the Linux distributions. I am more familiar with intel syntax than at & t syntax and fasm is the assembler i have been using lately :).
With as assembler you need to reverse the operands , add a suffix to indicate size , replace [] with () , use % for registers etc , etc.. .pain IMHO.
Another thing you can do is make use of GCC inline assembly . I am not a big fan of inline assembly, I prefer writing .asm modules in assembly itself and later linking separately. That way you keep architecture specific code out from your C code .
GNU as is more or less written as a compiler back end where the compiler always feeds it with correct code , not really suitable for hand coding.
--Lucifer
"To Denouce the Evils of Truth and Love. To cause may hem and destruction and necromancy , Lucifer is here"
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP