English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 2002
Search took 0.20 seconds.
Search: Posts Made By: phx
Forum: Coders. C/C++ 19 October 2021, 19:09
Replies: 9
Views: 669
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: 9
Views: 669
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: 9
Views: 669
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: 9
Views: 669
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: 245
Views: 23,540
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: 7,730
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: 2,889
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: 853
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: 7,730
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: 2,889
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: 7,730
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: 2,889
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: 2,889
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: 584
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: 2,889
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: 584
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: 2,889
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: 507
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: 164,986
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: 556
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: 990
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,075
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,221
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,075
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: 712
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,075
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: 33,174
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...
Forum: Nostalgia & memories 31 August 2021, 13:47
Replies: 35
Views: 2,064
Posted By phx
I'm using ethernet on my Amigas mostly for...

I'm using ethernet on my Amigas mostly for transfering files in the LAN. There are not so many internet services you could use nowadays, but theoretically they are online all the time.

I would...
Forum: Coders. Asm / Hardware 21 August 2021, 21:43
Replies: 8
Views: 1,843
Posted By phx
Indeed, it's always good to have the source of...

Indeed, it's always good to have the source of some complex applications, which you can assemble and compare. But that's never enough.

What I'm doing additionally, to test the m68k backend of vasm...
Forum: Coders. General 09 August 2021, 14:08
Replies: 17
Views: 2,274
Posted By phx
Wow! That's great. Seems to include a lot of...

Wow! That's great. Seems to include a lot of information I need. I will work through it in the following weeks. Maybe I can add HCLN source level debugging to the Amiga output module and real DRI...
Forum: Coders. General 06 August 2021, 12:58
Replies: 17
Views: 2,274
Posted By phx
Sounds great! Any information is much...

Sounds great! Any information is much appreciated. :great
Forum: Coders. System 03 August 2021, 22:54
Replies: 25
Views: 3,321
Posted By phx
The struct Library at the beginning is mandatory,...

The struct Library at the beginning is mandatory, as it describes your library. The rest of the structure is filled by data your library code needs.

I haven't seen your example library source. It...
Forum: Coders. General 03 August 2021, 22:37
Replies: 17
Views: 2,274
Posted By phx
Now I'm unsure. Did I see HEADDBGV01 also in...

Now I'm unsure. Did I see HEADDBGV01 also in SAS/C output? Have to check that tomorrow.

Otherwise, I'm also interested in Atari object file formats. :)
Especially in the DRI object file format...
Forum: Coders. General 03 August 2021, 16:54
Replies: 17
Views: 2,274
Posted By phx
Great! :great Maybe I can implement it as an...

Great! :great

Maybe I can implement it as an alternative line-debug format in vasm, once I have all information.
Forum: Coders. General 03 August 2021, 12:01
Replies: 17
Views: 2,274
Posted By phx
The HEADDBGV01 part is still mysterious, but HCLN...

The HEADDBGV01 part is still mysterious, but HCLN seems sufficiently reengineered. Thanks a lot!

I guess that Devpac's MonAm will read both, Devpac-HCLN and SAS/C-LINE DEBUG hunks. So there is no...
Forum: Coders. General 02 August 2021, 12:00
Replies: 17
Views: 2,274
Posted By phx
Devpac Debug hunks

When you assemble with debug info enabled in Devpac, you get a free floating HUNK_DEBUG labeled HEADDBGV01, directly following the header, and debug hunks labeled HCLN for each section.

Is the...
Forum: Coders. Asm / Hardware 26 July 2021, 17:07
Replies: 39
Views: 2,690
Posted By phx
Indeed, the code shown is calling for trouble. ...

Indeed, the code shown is calling for trouble.
Never access the hardware directly when the OS is still alive! And the OS is alive, when the AmigaOS interrupts are handled. Also don't play with DMA...
Forum: Coders. System 25 July 2021, 12:02
Replies: 15
Views: 2,334
Posted By phx
Ok, so we have either rounding issues by the...

Ok, so we have either rounding issues by the round-to-zero policy, or we have rounding issues when using mathieeesingbas and mathieeedoubbas in parallel. Sigh. :(

I agree, but the fix doesn't help...
Forum: Coders. System 23 July 2021, 23:14
Replies: 15
Views: 2,334
Posted By phx
With misconfigured I mean something else than...

With misconfigured I mean something else than round-to-nearest and extended precision.

Not a problem for plain portable C programs, but AmigaOS programs which launch new tasks are at risk. This is...
Forum: Coders. Asm / Hardware 23 July 2021, 18:07
Replies: 28
Views: 2,826
Posted By phx
LOL I keep forgetting. I shouldn't look that up...

LOL
I keep forgetting. I shouldn't look that up in my own sources.
At least three seem easier to handle for me. And you have your two columns for clipping, even when one extra column is shown due...
Showing results 1 to 40 of 2002

 
Forum Jump

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


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