Amiga-Development

Please login or register.

Login with username, password and session length
Advanced search  

News:

Created for developers of all Amiga camps

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - salass00

Pages: [1]
1
Common standards / Re: MUI classes and their serial numbers
« on: December 18, 2015, 01:36:25 PM »
- There are max. 32767 unique 'serial numbers', because the user_tag ($80000000) or's off half the word.

Actually it would be 65535 since there is no sign bit to worry about. You can even make that 65536 if you allow (0x80000000|(serialnr << 16)|0) as a valid tag ID which technically it is.

2
Programming Tutorials / Re: C programming tutorial
« on: November 02, 2014, 09:58:02 PM »
I find it rather amusing to cross-compile (needs to be setup separately and manually as well) from windows editor and just use aros hosted to test.

On this topic I wrote some instructions for setting up an AROS targeted gcc cross-compiler here:
https://dl.dropboxusercontent.com/u/26599983/aros_crosscompiler_setup.txt

I wrote them mostly for myself but if other people find them useful then even better. FWIW I've used the same procedure successfully on both linux and cygwin.

3
Free Sources / Re: 68k Sources
« on: September 19, 2014, 03:59:44 PM »
Just because a source code isn't written to be portable to begin with doesn't mean it can't be ported or made portable with a little or very much work.

4
Languages / Re: malloc strutcs
« on: September 05, 2014, 08:26:58 AM »
Now, If I want to use the second object I have to refer to It as myobject+1. Why canīt I do myobject[1] as with other kind of arrays?

Why do you think that you can't?

Just keep in mind that the [] operator also dereferences the pointer so myobject[1] is the same as (*(myobject + 1)) and not (myobject + 1) so if you need to access fields in myobject[1] you need to do it like this:

myobject[1].field

instead of:

myobject[1]->field

and if you needed a pointer to it you would use:

&myobject[1]

5
What is ylwrap?

Some kind of helper script for running bison. Seems to be used when building quite a few projects (type "ylwrap" into google and you will get quite a few results). TBH I don't really care what exactly it does now that it's working.

6
I think the '-- bison -y -d' stuff that is added at the end of the command is supposed to be doing something but for some reason it's not working here.
Quote
.y.c:
   $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)

Edit:

The reason it didn't work was because the ylwrap script was completely broken. I replaced it with one from the binutils-2.18 tree and everything compiles fine now.

7
The 'Permission denied' is because the ldgram.y file isn't executable. If I enable executable permission then it gets a little further and then fails because ldgram.y isn't an sh script.

8
AmigaOS 3.x Dev / Re: Compiler optimizations for 68020
« on: March 29, 2013, 08:42:14 AM »
@Matt Hey

Thanks for the explanation!

In the meantime I compiled VBCC linux crosscompiler and produced some objects. Does anyone know a way to disassemble the hunk object under linux?

You could try ira:
http://aminet.net/package/dev/asm/ira

The source code is included and should compile on linux/cygwin.

9
AmigaOS 3.x Dev / Re: Compiler optimizations for 68020
« on: March 29, 2013, 08:31:45 AM »
@TCL

Is any of the compiler you mentioned available as crosscompilers from linux or windows or are they all amiga-native?

You can compile vbcc as cross-compiler yourself. I've done this on both cygwin and ubuntu linux and it's very easy.

http://www.ibaug.de/vbcc/vbcc.tar.gz (vbcc source code)
http://sun.hasenbraten.de/vasm/index.php?view=relsrc (vasm source code)
http://sun.hasenbraten.de/vlink/index.php?view=relsrc (vlink source code)
http://mail.pb-owl.de/~frank/vbcc/2011-08-05/vbcc_unix_config.zip (config files with unix paths)

10
@magorium

I have read, write and execute permissions on the ld directory so that is not the issue.
Quote
drwxrwxr-x  8 salass00 salass00   4096 maali 28 22:38 ld

11
I'm trying to build a m68k-amigaos targetted binutils from the version 2.14 sources in the adtools project.

These are the commands I use:
svn checkout svn://svn.code.sf.net/p/adtools/code/branches/binutils/2.14 binutils-2.14
mkdir binutils-build
cd binutils-build
../binutils-2.14/configure --target=m68k-amigaos --prefix=/usr/local/amiga
make

and it always fails after a while with:
Quote
make[3]: Entering directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
/bin/sh ../../binutils-2.14/ld/ylwrap `test -f '../../binutils-2.14/ld/ldgram.y' || echo '../../binutils-2.14/ld/'`../../binutils-2.14/ld/ldgram.y y.tab.c ldgram.c y.tab.h ldgram.h y.output ldgram.output -- bison -y -d
/bin/sh: 0: Can't open ../../binutils-2.14/ld/ylwrap
make[3]: *** [ldgram.c] Error 127
make[3]: Leaving directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
make: *** [all-ld] Error 2

Anyone know what this is about?

If I copy the ylwrap file from ../binutils-2.14 to where it expects to find it, it continues for a bit and then fails again with:
Quote
make[3]: Entering directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
/bin/sh ../../binutils-2.14/ld/ylwrap `test -f '../../binutils-2.14/ld/ldgram.y' || echo '../../binutils-2.14/ld/'`../../binutils-2.14/ld/ldgram.y y.tab.c ldgram.c y.tab.h ldgram.h y.output ldgram.output -- bison -y -d
../../binutils-2.14/ld/ylwrap: 86: ../../binutils-2.14/ld/ylwrap: /home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld/../../binutils-2.14/ld/ldgram.y: Permission denied
make[3]: *** [ldgram.c] Error 1
make[3]: Leaving directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/salass00/Development/Projects/m68k-amigaos/binutils-build/ld'
make: *** [all-ld] Error 2

The permissions for the file in question are:
Quote
ls -l ../binutils-2.14/ld/ldgram.y
-rw-rw-r-- 1 salass00 salass00 24314 maali 28 17:55 ../binutils-2.14/ld/ldgram.y

Pages: [1]