Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Get VBCC+VASM+VLINK to work?
Posted by: Sdw Aug,13.2013-00:22 

OK, I'm soon tearing my hair out over this one.

I have a very nice toolchain running on Windows for my Amiga 500 crossdevelopment.
It's VBCC+VASM+VLINK based, and allows me to mix C and Asm in a very nice way.

Now I want to get the something similar running for the Atari ST.

Since the code should run on exactly the same 68000-CPU, I thought it would be simple, since vasm/vlink both seem to have Atari TOS-support.

So I downloaded the atari-target for VBCC, put it in the same place where I had my Amiga target, and then tried modifying the make-files to have the toolchain build Atari executables instead of Amiga executables.

But it isn't working at all.

I end up with this:
[code]
E:\Prg\VBCC\examples\minimal-atari>make
vbccm68k -quiet -maxoptpasses=200 -I./ -I"e:\prg\VBCC/targets/m68k-atari/include
" -D__VBCC__ -O=-1 -cpp-comments -cpu=68000 -fpu=none main.c
warning 208 in function "main": suspicious loop
vasmm68k_mot -quiet -Faout -phxass -o main.o main.asm
vlink -L./ -L"e:\prg\VBCC/targets/m68k-atari/lib" "e:\prg\VBCC/targets/m68k-atar
i/lib/minstart.o" -Bstatic -bataritos -Cvbcc -s -o minimal main.o
minstart.o: In "start":
Error 21: minstart.o (.text+0x22): Reference to undefined symbol __stksize.
Error 21: minstart.o (.text+0x28): Reference to undefined symbol ___stack.
make: *** [minimal] Error 1
[/code]

I have tried using the atari-target files from the "VBCC VBCC/VASM for Mac OS X" that I found here on DHS, then I actually get a binary file, but when I try to run it in Hatari, it doesn't seem to recognize it as an exe, but instead asks if I want to show or print.

If I use pure assembler and use:
vasmm68k_mot.exe -Ftos -no-opt -nosym -o minimal.prg minimal.s
I can get a working TOS exe, but I would prefer not to have to write everything in pure asm!







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Get VBCC+VASM+VLINK to work? Sdw Aug,13.2013-00:22
  Re: Get VBCC+VASM+VLINK to work? Sdw Aug,13.2013-21:51
    Re: Get VBCC+VASM+VLINK to work? AdamK Aug,13.2013-22:28
      Re: Get VBCC+VASM+VLINK to work? PeP Aug,16.2013-07:59
    Re: Get VBCC+VASM+VLINK to work? Sdw Aug,13.2013-23:09
      Re: Get VBCC+VASM+VLINK to work? AdamK Aug,14.2013-06:59
        Re: Get VBCC+VASM+VLINK to work? Sdw Aug,14.2013-11:44
          Re: Get VBCC+VASM+VLINK to work? mikro Aug,14.2013-23:40
            Re: Get VBCC+VASM+VLINK to work? sqward Aug,16.2013-12:57
              Re: Get VBCC+VASM+VLINK to work? ggn Aug,16.2013-17:30
                Re: Get VBCC+VASM+VLINK to work? PeP Aug,19.2013-11:33
  Re: Get VBCC+VASM+VLINK to work? Orion_ Aug,14.2013-01:08
    Re: Get VBCC+VASM+VLINK to work? Sdw Aug,14.2013-11:45


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson