English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 2015
Search took 0.19 seconds.
Search: Posts Made By: phx
Forum: Coders. C/C++ 27 October 2021, 12:26
Replies: 6
Views: 291
Posted By phx
Linker library with stub functions: fd2pragma...

Linker library with stub functions:
fd2pragma special 12 to vlibos3: hunkname CODE regex.fdProto header file:
fd2pragma special 38 to vincludeos3:proto regex.fdHeader file with vbcc assembler...
Forum: Coders. C/C++ 27 October 2021, 10:28
Replies: 6
Views: 291
Posted By phx
Looks like this is a linker library in Aztec-C...

Looks like this is a linker library in Aztec-C "lb" format. Only the Aztec linker might be able to use it.
(Is there a description of that format somewhere?)

This is one solution. Although there...
Forum: Coders. Scripting 25 October 2021, 11:40
Replies: 5
Views: 219
Posted By phx
Ok. Let's assume your openSSH for AmigaOS is more...

Ok. Let's assume your openSSH for AmigaOS is more or less complete (I didn't try it).

Use ssh-keygen to generate a private/public key pair. RSA with 2048 bits will be sufficient as you are using...
Forum: Coders. General 24 October 2021, 20:30
Replies: 10
Views: 500
Posted By phx
The archive you downloaded only contains the...

The archive you downloaded only contains the binary. You should really get the documentation as well:
http://sun.hasenbraten.de/vasm/release/vasm.pdf

The command and options depend on what you...
Forum: Coders. Scripting 24 October 2021, 17:53
Replies: 5
Views: 219
Posted By phx
What is "open SSH"? Does it have an option to use...

What is "open SSH"? Does it have an option to use identity files (-i on Unix SSH)?

The usual approach would be to create a public/private key pair, store the public key in .ssh/authorized_keys...
Forum: Coders. Asm / Hardware 24 October 2021, 17:28
Replies: 3
Views: 506
Posted By phx
Usually the linker, or assembler, will set it...

Usually the linker, or assembler, will set it when writing an executable file. But I don't know your build environment.
If that didn't work you can still make it executable after you copied the file...
Forum: Coders. General 24 October 2021, 13:42
Replies: 10
Views: 500
Posted By phx
Binaries (including Windows) are here: ...

Binaries (including Windows) are here:
http://sun.hasenbraten.de/vasm/index.php?view=binrel

Although I would always recommend to build from source.
Forum: Coders. Asm / Hardware 22 October 2021, 22:55
Replies: 3
Views: 506
Posted By phx
Nice little game for two players! I like this...

Nice little game for two players! I like this type of game. Will there be asteroids? ;)

BTW, the executable only starts under Kickstat 1.x, because you probably forgot to set the Executable flag....
Forum: Coders. General 22 October 2021, 22:44
Replies: 3
Views: 276
Posted By phx
As Deimos said, you will usually link against...

As Deimos said, you will usually link against amiga.lib (-lamiga) when calling AmigaOS functions. You also want to #include <proto/exec.h>, so the compiler does not have to rely on stub functions...
Forum: Coders. C/C++ 21 October 2021, 15:46
Replies: 12
Views: 1,003
Posted By phx
You are certainly right. As long as the code...

You are certainly right. As long as the code generator does not rely on the stack arguments (for optimizing subsequent calls) it is probably ok.

I agree that an ABI using two or three data and...
Forum: Coders. Asm / Hardware 21 October 2021, 12:43
Replies: 59
Views: 3,066
Posted By phx
When operating on address registers the...

When operating on address registers the word-operand is always 32-bit sign extended first.
Forum: Coders. Asm / Hardware 21 October 2021, 11:20
Replies: 117
Views: 32,003
Posted By phx
If you ever manage to write an Amiga game, which...

If you ever manage to write an Amiga game, which I doubt, please let us know.
I'm looking forward to give it a verdict on LemonAmiga which it deserves!
Forum: Coders. C/C++ 21 October 2021, 11:08
Replies: 12
Views: 1,003
Posted By phx
Oh. I see. (Does ANSI/ISO-C allow moving...

Oh. I see. (Does ANSI/ISO-C allow moving arguments on the stack?)

I don't really like that, though. As far as I understand now, sc.lib is probably build with PARMS=both for all functions to keep...
Forum: Coders. C/C++ 19 October 2021, 19:09
Replies: 12
Views: 1,003
Posted By phx
Indeed, that's a nice trick, which I also used...

Indeed, that's a nice trick, which I also used for some functions. But it can only be done when all arguments fit into the __regargs registers. Otherwise the stack-offsets differ. And there shouldn't...
Forum: Coders. C/C++ 19 October 2021, 11:43
Replies: 12
Views: 1,003
Posted By phx
AFAIK SAS/C can mix Fastcall- and Standard-ABI...

AFAIK SAS/C can mix Fastcall- and Standard-ABI functions and object files in a single linker library - like clib?

This would lead to another question: Let's take the varargs function printf. It...
Forum: Coders. C/C++ 09 October 2021, 12:01
Replies: 12
Views: 1,003
Posted By phx
Thanks a lot! That's all I need to know! ...

Thanks a lot! That's all I need to know!

Looks like vbcc's -fastcall option is already very compatible. So I only need some time to add all the Fastcall-ABI functions to vclib.


You have some...
Forum: Coders. C/C++ 08 October 2021, 17:47
Replies: 12
Views: 1,003
Posted By phx
SAS/C Fastcall-ABI (__regargs)

I'm looking for an exact specification of SAS/C's Fastcall ABI.

All I'm sure about is that the first two integer arguments are passed in d0, d1 while the first two pointers are passed in a0, a1....
Forum: Amiga scene 07 October 2021, 13:42
Replies: 252
Views: 26,029
Posted By phx
Don't do any complex calculations. You want to...

Don't do any complex calculations. You want to use tables as much as possible for performance reasons. I thought you had a look into the Solid Gold sources? ;)

Like this:

; Horizontal scroll...
Forum: Coders. General 06 October 2021, 17:25
Replies: 57
Views: 8,187
Posted By phx
I understand your problem now. With that debugger...

I understand your problem now. With that debugger you have a program which supports multiple CPUs and therefore also has parts with opcodes for them.
Difficult, because IRA currently has no means to...
Forum: Coders. General 05 October 2021, 17:13
Replies: 49
Views: 3,521
Posted By phx
vlink is certainly maintained, but its maintainer...

vlink is certainly maintained, but its maintainer felt no sufficient urge to implement ALVs, although he already did that in PhxLnk. Personally I prefer to shuffle the object modules around to make...
Forum: Amiga websites reviews 04 October 2021, 16:00
Replies: 5
Views: 1,050
Posted By phx
LOL Sorry. Every few weeks my server...

LOL
Sorry.

Every few weeks my server freezes and it may take some hours before I notice. There are certainly some issues in that NetBSD/sandpoint kernel, running on a 266MHz 8241 PPC (QNAP...
Forum: Coders. General 03 October 2021, 18:50
Replies: 57
Views: 8,187
Posted By phx
Please do. Works here: frank@nerthus cat...

Please do. Works here:

frank@nerthus cat movec.s
mc68040
movec msp,d0
rts
frank@nerthus vasmm68k_mot -quiet -Fhunkexe -o movec movec.s
frank@nerthus ira -m68040...
Forum: Coders. General 02 October 2021, 23:08
Replies: 49
Views: 3,521
Posted By phx
Agreed. The format of a HUNK_DEBUG block is...

Agreed. The format of a HUNK_DEBUG block is completely free and you can create any complex debugging structures in them. Nothing is impossible.

An assembler alone is not enough. Unfortunately you...
Forum: Coders. General 02 October 2021, 22:44
Replies: 57
Views: 8,187
Posted By phx
It certainly does. Unfortunately FPU opcodes were...

It certainly does. Unfortunately FPU opcodes were not implemented until today.

As far as I know MSP and ISP only exist on 020, 030 and 040.
Forum: Coders. General 01 October 2021, 13:20
Replies: 49
Views: 3,521
Posted By phx
That may be possible in theory, but not with...

That may be possible in theory, but not with HUNK_SYMBOL. It only defines symbol names and their section offset (AKA labels). Or absolute symbol names with their values (AKA equates).

As far as I...
Forum: Coders. General 01 October 2021, 11:34
Replies: 49
Views: 3,521
Posted By phx
The question whether including source texts or...

The question whether including source texts or linking with their object files is mostly personal preference. Both have minor advantages and disadvantages, even with compiling/assembling times...
Forum: Coders. C/C++ 29 September 2021, 12:42
Replies: 3
Views: 659
Posted By phx
Indeed, the second option is clearly the better...

Indeed, the second option is clearly the better one in this case. I just wanted to mention this vlink feature, which can be useful when linking with ELF object files, as they usually define all their...
Forum: Coders. General 29 September 2021, 12:33
Replies: 49
Views: 3,521
Posted By phx
There is an option in the Devpac GUI to select...

There is an option in the Devpac GUI to select "Linkable" output format. Otherwise use the command line tool (GenAm) and the -l option:
genam -l -otest.o test.asmThen link the object files with any...
Forum: Coders. C/C++ 28 September 2021, 10:53
Replies: 3
Views: 659
Posted By phx
Two possibilities: 1. vlink has the...

Two possibilities:

1. vlink has the capability to add or delete leading underscores of all symbols from an object or a library. When KPutStr from debug.lib is the only symbol you want to...
Forum: Coders. General 26 September 2021, 23:06
Replies: 49
Views: 3,521
Posted By phx
Not many replys, maybe because you gave not...

Not many replys, maybe because you gave not enough information.

What do you expect MonAm to show "properly" and "correctly"? The symbols (InitLinkedList) are obviously there. Are you missing the...
Forum: Coders. C/C++ 21 September 2021, 12:29
Replies: 4
Views: 569
Posted By phx
Steady is right. vbccm68k behaves like all...

Steady is right. vbccm68k behaves like all classic Amiga compilers here, because Common symbols were never really supported in hunk-format object files (partly starting with V36?). So gcc is (as...
Forum: support.WinUAE 20 September 2021, 11:51
Replies: 135
Views: 167,360
Posted By phx
As Docent already mentioned: the most common...

As Docent already mentioned: the most common format under Amiga compilers and assemblers is the LINE debug block from SAS/C. Should be trivial to implement.
As a bonus maybe also HCLN from Devpac. ;)
Forum: Coders. C/C++ 12 September 2021, 11:09
Replies: 4
Views: 625
Posted By phx
I admit it is confusing, and this is certainly my...

I admit it is confusing, and this is certainly my fault.

From Apollo's reaction I assume that he didn't expect the kick13sm config file to enable 16-bit int. He probably thought that the 's'...
Forum: Coders. C/C++ 10 September 2021, 23:23
Replies: 11
Views: 1,101
Posted By phx
This is a C source. I don't see any C++ in it. ...

This is a C source. I don't see any C++ in it.

Why "g++"? It is plain C. Use a C compiler. No special options should be necessary. Just link with -lamiga for the stub functions (source doesn't use...
Forum: Coders. System 09 September 2021, 13:03
Replies: 13
Views: 1,143
Posted By phx
Yes. It is a jbsr. I see the same with gcc...

Yes. It is a jbsr. I see the same with gcc 2.95.3, but the assembler always makes a jsr from it, even when generating 020+ code. Maybe there is not a compiler-option but an assembler-option to...
Forum: Coders. Asm / Hardware 09 September 2021, 12:26
Replies: 16
Views: 1,245
Posted By phx
There are many ways to debug such a crash, but...

There are many ways to debug such a crash, but the original question remains an interesting one: how does an m68k debugger generate a back trace of the stack?

I know there are debuggers which can...
Forum: Coders. System 08 September 2021, 19:51
Replies: 13
Views: 1,143
Posted By phx
I tried to reproduce the pc-relative function...

I tried to reproduce the pc-relative function call problem with gcc 2.95.3 on my A3000 and with the latest gcc I got, gcc 5.4.0, configured as a m68k cross-compiler on my NetBSD server. Both always...
Forum: Coders. C/C++ 08 September 2021, 16:04
Replies: 1
Views: 777
Posted By phx
The official reaction.lib floating around is...

The official reaction.lib floating around is SAS/C-only. It looks like it was compiled with the SAS/C-specific regargs-ABI, unlike amiga.lib and debug.lib, so it also references external functions...
Forum: Coders. System 07 September 2021, 20:03
Replies: 13
Views: 1,143
Posted By phx
Like a/b I'm not sure what you are currently...

Like a/b I'm not sure what you are currently generating.
I understand your prerequisite is that the resulting code must be raw binaries, with a simple 32-bit address relocation table appended, like...
Forum: Coders. Blitz Basic 05 September 2021, 13:19
Replies: 126
Views: 34,039
Posted By phx
I would guess that the first two bytes of that...

I would guess that the first two bytes of that sample are not zero. They are used for idling, when a one-shot sample has played. See also the last two questions of the ptplayer FAQ.

An alternative...
Showing results 1 to 40 of 2015

 
Forum Jump

All times are GMT +2. The time now is 00:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.21049 seconds with 10 queries