English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 680
Search took 0.07 seconds.
Search: Posts Made By: bebbo
Forum: Coders. C/C++ 02 November 2023, 09:05
Replies: 26
Views: 2,170
Posted By bebbo
That evaluates to true, if b > 2a, false...

That evaluates to true, if b > 2a, false otherwise.
Forum: Coders. C/C++ 25 October 2023, 20:38
Replies: 1,549
Views: 359,639
Posted By bebbo
E.g using pthread1.c from...

E.g using pthread1.c from https://www.cs.cmu.edu/afs/cs/academic/class/15492-f07/www/pthreads.html


m68k-amigaos-g++ pthread1.c -noixemul -lpthread -o pthread1 -Os
yields an executable, which...
Forum: Coders. C/C++ 24 October 2023, 16:26
Replies: 1,549
Views: 359,639
Posted By bebbo
Despite that the wanky shaker os isn't supported...

Despite that the wanky shaker os isn't supported very well, there are resolved tickets regarding isl/gmp -> search the issues.


And the gcc branch amiga13.1 does still exist.
Forum: Coders. C/C++ 24 October 2023, 16:22
Replies: 1,549
Views: 359,639
Posted By bebbo
#include <pthread.h> and link with...

#include <pthread.h>


and link with -lpthread


That options adds thread safety to stdio and some other stuff.
Forum: News 11 October 2023, 20:35
Replies: 15
Views: 5,889
Posted By bebbo
in the header Include_H/workbench/workbench.h:88 ...

in the header Include_H/workbench/workbench.h:88

STRPTR * do_ToolTypes;


should rather be
CONST_STRPTR * do_ToolTypes;


to match
Forum: Coders. C/C++ 29 September 2023, 09:15
Replies: 7
Views: 1,358
Posted By bebbo
You have to use make or use arexx as a...

You have to use make or use arexx as a workaround:
Use a template and modify this with arexx then execute the modifed smakefile.

Example:
define the objects and the workdir in the smakefile...
Forum: Coders. C/C++ 21 September 2023, 14:22
Replies: 1,549
Views: 359,639
Posted By bebbo
there you go:...

there you go: https://franke.ms/download/setup-amiga-gcc.exe


... keep a backup^^
Forum: Coders. C/C++ 21 September 2023, 08:57
Replies: 1,549
Views: 359,639
Posted By bebbo
that's a binutils issue... anyway, it's fixed...

that's a binutils issue... anyway, it's fixed now. And I managed to create a new MSYS2 version.
Forum: Coders. C/C++ 17 September 2023, 20:31
Replies: 1,549
Views: 359,639
Posted By bebbo
wow, msys2... ... fix is on the way - no...

wow, msys2...


... fix is on the way - no idea when msys2 builds successfully again...
Forum: Coders. C/C++ 17 September 2023, 08:41
Replies: 1,549
Views: 359,639
Posted By bebbo
That AND is implicitly executed by the CPU, no...

That AND is implicitly executed by the CPU, no need to add it into the asm code.

Also the extension to long can be omitted for the shift count. Thus the original code

_lsr_sbb:
move.b...
Forum: Coders. C/C++ 15 September 2023, 11:48
Replies: 1,549
Views: 359,639
Posted By bebbo
example code please Disassembly of...

example code please


Disassembly of section .text:

00000000 .text:
0: 6600 0000 bne.w 0x2
Forum: Coders. C/C++ 15 September 2023, 10:44
Replies: 1,549
Views: 359,639
Posted By bebbo
did the same on an odroid and it's ok. gcc...

did the same on an odroid and it's ok.
gcc version 6.5.0b 230914152536


the result on the pi400 is still better than before :-)
Forum: Coders. C/C++ 14 September 2023, 14:52
Replies: 1,549
Views: 359,639
Posted By bebbo
I just added the (requested...

I just added the (requested (https://github.com/bebbo/gcc/issues/206)) feature to optimize the shift instructions:

Superfluous signed/unsigned extensions are suppressed and the smallest possible...
Forum: Coders. C/C++ 04 September 2023, 22:27
Replies: 1,549
Views: 359,639
Posted By bebbo
so m68k-amigaos-objcopy has some real use :) ...

so m68k-amigaos-objcopy has some real use :)


I used your steps using 173k and it's working on kick 1.3 too. And the hunks do look ok:


hunkdump test
reading test
hunk 000003f3, ...
Forum: Coders. C/C++ 28 August 2023, 08:32
Replies: 2
Views: 620
Posted By bebbo
read that page again: 'Prior to V50 of...

read that page again:


'Prior to V50 of the operating system, functions such as CreatePort() and CreateMsgPort() were often used.'


Better use examples for your target system.
Forum: Coders. C/C++ 17 August 2023, 21:43
Replies: 1,549
Views: 359,639
Posted By bebbo
gcc6 uses stab debug sections gcc13 uses...

gcc6 uses stab debug sections

gcc13 uses dwarf debug sections, object files contain these already, rest is pending.
Forum: Coders. C/C++ 13 July 2023, 17:00
Replies: 50
Views: 7,009
Posted By bebbo
make clean make v date=2020-07-31 maybe...

make clean
make v date=2020-07-31

maybe you should use different PREFIX then
make v

returns to the latest versions.
Forum: Coders. C/C++ 13 July 2023, 09:11
Replies: 50
Views: 7,009
Posted By bebbo
There is patching and there is patching. And...

There is patching and there is patching. And there is patching?



To make the NDK 3.9 headers usable for KICK1.3 I added
#ifdef __KICK13__
int reserved[10];

#else
...
Forum: Coders. C/C++ 16 June 2023, 10:35
Replies: 50
Views: 7,009
Posted By bebbo
but that's not an internet resource

but that's not an internet resource
Forum: Coders. C/C++ 15 June 2023, 08:18
Replies: 50
Views: 7,009
Posted By bebbo
The includes for 1.3 are grafted from the 3.*...

The includes for 1.3 are grafted from the 3.* includes.
The NDK3.9 headers are better prepared for 1.3 usage - amiga-gcc already has some patches there.
TBD:
- provide patches for NDK3.2 similar...
Forum: Coders. C/C++ 14 June 2023, 14:09
Replies: 1,549
Views: 359,639
Posted By bebbo
There is no need for a patch. Instead use an...

There is no need for a patch. Instead use an appropriate isl version.
- https://github.com/bebbo/amiga-gcc/issues/341
- https://gist.github.com/rrs42/5e5b7bd184c3154608b89d0f4dd3a2a8
Forum: Coders. General 07 June 2023, 08:45
Replies: 18
Views: 1,884
Posted By bebbo
The package setup-amiga-gcc.exe is intended to be...

The package setup-amiga-gcc.exe is intended to be used in Windows without installing MSYS2. It should also work having MSYS2.

I remember there was a problem with make and shell. That's why the...
Forum: Coders. General 05 June 2023, 18:00
Replies: 18
Views: 1,884
Posted By bebbo
You have to open the command line via the...

You have to open the command line via the provided `cmdline.bat`.
Or you have to provide a proper configuration by yourself.


It uses msys2, which is linux for windows and that uses sh.
Forum: Coders. C/C++ 06 May 2023, 21:56
Replies: 94
Views: 28,104
Posted By bebbo
Feel free to file a bug at...

Feel free to file a bug at https://github.com/bebbo/binutils-gdb and provide enough details to make it reproducable.
(note that debugging using the amiga13.1 branch is not yet supported)
Forum: Coders. C/C++ 01 May 2023, 13:34
Replies: 4
Views: 703
Posted By bebbo
I updated the script to support the parameter...

I updated the script to support the parameter "20" for 68020. Output is then

add.l d0,d0 = 2
lsl.l #2,d0 = 4
move.b d0,(a0) = 4
move.w d0,(a0) = 4
move.l d0,(a0) = 4
move.l d0,(a0)+ =...
Forum: Coders. C/C++ 01 May 2023, 11:17
Replies: 4
Views: 703
Posted By bebbo
cycle counting with vamos

Here is a simple bash script to get the cycle count for instructions in vamos:

#!/bin/bash
[ "$1" != "" ] && cpu=-C$1
case $1 in
20)
rts=10
;;
*)
rts=16
Forum: Coders. C/C++ 27 April 2023, 16:39
Replies: 1,549
Views: 359,639
Posted By bebbo
and: m68k-amigaos-gdb does not yet work with...

and: m68k-amigaos-gdb does not yet work with gcc-13.1 since it's a new debug format - same as in elf.
Forum: Coders. C/C++ 27 April 2023, 16:18
Replies: 1,549
Views: 359,639
Posted By bebbo
now sfdc got fixed, and the recent mui patch got...

now sfdc got fixed, and the recent mui patch got removed.


sfdc no longer adds registers of asm variables to the clobber list of the library call.
Forum: Coders. C/C++ 27 April 2023, 13:03
Replies: 1,549
Views: 359,639
Posted By bebbo
added a patch for the mui sdk.

added a patch for the mui sdk.
Forum: Coders. C/C++ 27 April 2023, 12:27
Replies: 1,549
Views: 359,639
Posted By bebbo
... dang - all that wrong asm stuff...

... dang - all that wrong asm stuff...
Forum: Coders. C/C++ 27 April 2023, 10:47
Replies: 1,549
Views: 359,639
Posted By bebbo
I added some fixes and `make all` completed...

I added some fixes and `make all` completed succesfully on a new ubuntu VM.
The easiest way to build from scratch is:

sudo mkdir -p /opt/amiga
sudo chown $USER /opt/amiga
git clone...
Forum: Coders. C/C++ 26 April 2023, 18:09
Replies: 1,549
Views: 359,639
Posted By bebbo
that should work too. Or do it the hard way...

that should work too.
Or do it the hard way...
Forum: Coders. C/C++ 26 April 2023, 17:12
Replies: 1,549
Views: 359,639
Posted By bebbo
What NDK are you using? I used NDK3.2 since...

What NDK are you using? I used NDK3.2 since NDK3.9 is no longer available...

... looking into it too
Forum: Coders. C/C++ 26 April 2023, 16:06
Replies: 1,549
Views: 359,639
Posted By bebbo
I just added the branch `amiga13.1` to my gcc...

I just added the branch `amiga13.1` to my gcc repo. For those who want to test it...

=> switch the gcc repo to that branch, use a different prefix and try it out.


git clone...
Forum: Coders. C/C++ 19 April 2023, 20:22
Replies: 10
Views: 1,253
Posted By bebbo
I added clang-17 - the experimental m68k target...

I added clang-17 - the experimental m68k target of llvm - and got sieve to work. The tscp182 benchmark fails with an internal error...
Forum: Coders. C/C++ 18 April 2023, 17:41
Replies: 10
Views: 1,253
Posted By bebbo
Thank you, interesting. Uses ~2MB stack and a...

Thank you, interesting.
Uses ~2MB stack and a lot of floating point stuff, hm. Maybe not so ideal for the 68000?

EDIT: err, that are static variables^^
Forum: Coders. C/C++ 18 April 2023, 17:16
Replies: 10
Views: 1,253
Posted By bebbo
Alkis, thank you for stepping in. There are those...

Alkis, thank you for stepping in. There are those who have learned to ask politely, and those who have not.


Back to the topics - I omit the rants...


1. Does the same compiler produce...
Forum: Coders. C/C++ 17 April 2023, 23:39
Replies: 10
Views: 1,253
Posted By bebbo
by the different compilers hopefully, yes...

by the different compilers


hopefully, yes :-)

And vamos is used to count the cpu cycles for the programs.


Less cycles used is better.
Forum: Coders. C/C++ 17 April 2023, 22:41
Replies: 10
Views: 1,253
Posted By bebbo
I'm starting with * sieve * tscp182 and...

I'm starting with
* sieve
* tscp182

and the first results are here:https://franke.ms/bench2/chart.html
Forum: Coders. C/C++ 11 April 2023, 11:43
Replies: 1,549
Views: 359,639
Posted By bebbo
try this: LDFLAGS = -Wl,-Map=$(OUT).map

try this:



LDFLAGS = -Wl,-Map=$(OUT).map
Showing results 1 to 40 of 680

 
Forum Jump

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

Top

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