OSDev.org

The Place to Start for Operating System Developers
It is currently Sat May 11, 2024 3:55 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Thu Aug 02, 2007 6:54 pm 
Offline
Member
Member
User avatar

Joined: Tue Jul 17, 2007 9:16 am
Posts: 36
Location: Washington, DC Metro Area
SpooK wrote:
Nice catch.

It would be a wise thing to stay away from the latest NASM dev branch as it is a mess due to the major updates it is receiving in both for x64 support and code clean-up.

NASM 0.98.39 (STABLE) works just fine :)


STABLE - it's not just for horses anymore! :P

I checked my notebook to find out how I managed to pull a dev branch. I discovered that a google link I followed directly to the source download page was used. I checked that page today (during my eureka moment) and found that there was no mention of dev/stable branches, just link to 0.99 and "older" releases like 0.98. Didn't even stop to think if an odd minor release was a stable one or not (thinking, "hey it isn't labeled as such"). Hitting the home page for the project said plain as day, "latest stable... latest development..." :roll: That oughta teach me!

_________________
"If your code won't run, verify that you are, indeed, using the STABLE branches of your toolchain!" -- KrnlHckr, 2007 :oops:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 02, 2007 7:26 pm 
Offline
Member
Member

Joined: Sun Jun 18, 2006 7:21 pm
Posts: 260
KrnlHckr wrote:
SpooK wrote:
Nice catch.

It would be a wise thing to stay away from the latest NASM dev branch as it is a mess due to the major updates it is receiving in both for x64 support and code clean-up.

NASM 0.98.39 (STABLE) works just fine :)


STABLE - it's not just for horses anymore! :P

I checked my notebook to find out how I managed to pull a dev branch. I discovered that a google link I followed directly to the source download page was used. I checked that page today (during my eureka moment) and found that there was no mention of dev/stable branches, just link to 0.99 and "older" releases like 0.98. Didn't even stop to think if an odd minor release was a stable one or not (thinking, "hey it isn't labeled as such"). Hitting the home page for the project said plain as day, "latest stable... latest development..." :roll: That oughta teach me!


Agreed :P

I was actually the one to update the NASM home page and get the ball rolling on NASM development again. However, the development part has been out of my hands for 4 months now so I don't honestly know where the sources stand... all I do know is that there is quite a few issues and that the best course of action is to stick to 0.98.39 unless you are helping NASM developers to shake-down the latest dev sources.

I've also heard of a release by Mac developers that include MACHO output, but I don't keep up with unofficial/private builds.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 12:01 am 
Offline
Member
Member

Joined: Sun Jan 14, 2007 9:15 pm
Posts: 2566
Location: Sydney, Australia (I come from a land down under!)
I use the GNU assembler that came from my cross-compiler (rewrote the entire assembly part of Bran's tutorial in GAS syntax) so I'm always sure that it's the correct version, and it's always compatible with the other object files.

NASM is still ok though.

_________________
Pedigree | GitHub | Twitter | LinkedIn


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 4:58 am 
Offline
Member
Member
User avatar

Joined: Tue Jul 17, 2007 9:16 am
Posts: 36
Location: Washington, DC Metro Area
pcmattman wrote:
I use the GNU assembler that came from my cross-compiler (rewrote the entire assembly part of Bran's tutorial in GAS syntax) so I'm always sure that it's the correct version, and it's always compatible with the other object files.

NASM is still ok though.


I have used NASM up to this point because the tutorials all seem to be written in Intel syntax. I've been trying to get up to speed on AT&T syntax, but trying to learn both OS and gas was taxing my brain. I think that when I finish the last bits of the tutorial (learn IDT, IRQ, PIC, timer), I'll try attempting rewriting the asm bits in gas. That actually sounds like a fun thing to do. (Stay tuned for those posts! :)

I've been having a go at re-writing the C portions from the very beginning, taking advantage of typedefs and #define macros, etc. My C is a lot stronger than asm, though.

***
I'm still so tickled that the darn thing works now! :cool:

_________________
"If your code won't run, verify that you are, indeed, using the STABLE branches of your toolchain!" -- KrnlHckr, 2007 :oops:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 5:14 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
Hi,

I think one of Brynet's favourite sayings is that you can use Intel syntax with GAS (correct me if I'm wrong!) - not that I've tried it or can remember how it is done. The Intel version just seems so much nicer.

Code:
In C:
dest = src;

In Intel syntax:
mov dest, src

In AT&T:
movl src, dest


Spot the odd one out!

Cheers,
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 5:17 am 
Offline
Member
Member
User avatar

Joined: Sat Jan 27, 2007 3:21 pm
Posts: 553
Location: Best, Netherlands
and yes we are on the intel vs at&t syntax again. ppl get a life and concentrate on stuff that is important instead of having discussions on preferences, which are futile because it concerns personal feelings.

_________________
Author of COBOS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group