It is currently Mon Oct 20, 2014 4:39 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: BeebAsm 0.06
PostPosted: Tue Jan 22, 2008 7:26 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Hi,

There's a new version of BeebAsm on the wiki page now, which fixes a bug which Dave F discovered.

It's sorted now :)

Cheers!


Top
 
 Post subject: Re: BeebAsm 0.06
PostPosted: Tue Jan 22, 2008 7:27 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Oh, just to say... Dave M - could you mirror it on the BeebAsm page at stairwaytohell.com/beebasm please? Ta!


Top
 
 Post subject: Re: BeebAsm 0.06
PostPosted: Tue Jan 22, 2008 10:05 pm 
Offline
 Profile

Joined: Thu Dec 27, 2007 3:57 pm
Posts: 20
Compiling on my Mac produces two warnings :

    asmexception.h:22: warning: ‘class AsmException’ has virtual functions but non-virtual destructor
    asmexception.h:40: warning: ‘class AsmException_FileError’ has virtual functions but non-virtual destructor

Adding :
    virtual ~AsmException() {}

and
    virtual ~AsmException_FileError() {}

to the relevant classes in asmexception.h overcomes the warnings and the code compiles (and works !) OK.

Jon.


Top
 
 Post subject: Re: BeebAsm 0.06
PostPosted: Tue Jan 22, 2008 10:07 pm 
Offline
 Profile

Joined: Thu Dec 27, 2007 3:57 pm
Posts: 20
Forgot,

Also had to :

    #include <errno.h>

in expression.cpp

and alter makefile.inc to removed references to c:\... in declares for CC, CXX etc.


Top
 
 Post subject: Re: BeebAsm 0.06
PostPosted: Tue Jan 22, 2008 10:46 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Ah, cheers Jon!

I'd been meaning to ask if anyone would like to try compiling it on another platform to see if it worked ok.

Curious that GCC let the non-virtual destructors through... I compile with -pedantic, and I'd already caught the warning once, which was why AsmException_SyntaxError does have a virtual destructor. Also cheers for the <errno.h> thing - didn't know it had its own header file.

I'll make sure these changes go into the next version.

Glad to hear it works ok on Mac too :)


Top
 
 Post subject: Re: BeebAsm 0.06
PostPosted: Thu Mar 27, 2008 5:50 pm 
Offline
 Profile

Joined: Wed Mar 26, 2008 3:32 pm
Posts: 7
Not exactly 'another platform' but I have tried it with wineconsole under linux and works fine.
I think at the end I will convert it to run natively under Linux but for now I will keep it running with wine.


Top
 
 Post subject: Re: BeebAsm 0.06
PostPosted: Thu Mar 27, 2008 6:07 pm 
Offline
 Profile

Joined: Wed Mar 26, 2008 3:32 pm
Posts: 7
Following JonW's suggestions I have been able to compile it under Linux.
Here are the diffs:

src/Makefile
< TARGET := ../beebasm.exe
---
> TARGET := ../beebasm

src/Makefile.inc
< CC := C:/MinGW/bin/gcc
< CXX := C:/MinGW/bin/gcc
< LD := C:/MinGW/bin/gcc
< MKDIR := C:/Cygwin/bin/mkdir -p
< RM := C:/Cygwin/bin/rm -f
< ECHO := @@C:/Cygwin/bin/echo -e
---
> CC := gcc
> CXX := gcc
> LD := gcc
> MKDIR := mkdir -p
> RM := rm -f
> ECHO := echo -e

src/asmexception.h
> virtual ~AsmException() {}

src/expression.cpp
> #include <errno.h>


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron