English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 439
Search took 0.04 seconds.
Search: Posts Made By: bebbo
Forum: Coders. C/C++ 18 January 2020, 11:01
Replies: 1,219
Views: 140,604
Posted By bebbo
you must use -noixemul or one of -mcrt=nix13,...

you must use -noixemul or one of -mcrt=nix13, -mcrt=nix20, -mcrt=clib2


The default libraries are not that good... and you may create a ticket here: https://github.com/bebbo/newlib-cygwin/issues
Forum: Coders. Asm / Hardware 06 January 2020, 11:31
Replies: 33
Views: 1,148
Posted By bebbo
my expectation is, that the encoded offset is...

my expectation is, that the encoded offset is handled as in bcc/bsr.

X(pc)



if X is a number, that number is used without conversion. Thus

lea 2(pc),a0
Forum: Coders. C/C++ 05 January 2020, 12:26
Replies: 13
Views: 821
Posted By bebbo
I consider this as wrong, since it's not const....

I consider this as wrong, since it's not const. If DoSomethingWith modifies a value subsequent calls will start with the modified values.
Forum: Coders. Asm / Hardware 02 January 2020, 23:10
Replies: 25
Views: 1,523
Posted By bebbo
there is no good or bad - it's a religion. and...

there is no good or bad - it's a religion.
and here is some doc: https://sourceware.org/binutils/docs/as/
Forum: Coders. C/C++ 02 January 2020, 19:29
Replies: 1,219
Views: 140,604
Posted By bebbo
this will yield now Error: invalid...

this will yield now


Error: invalid operands (*UND* and .text sections) for `-' when setting `msg_length'



should be live soon
Forum: Coders. Asm / Hardware 02 January 2020, 15:04
Replies: 25
Views: 1,523
Posted By bebbo
m68k-amigaos-as generated hunks are more...

m68k-amigaos-as generated hunks are more compatible now. The example from above yields the same object file as vasm.

m68k-amigaos-ld links amiga hunks now different (again) to amiga aout.



...
Forum: Coders. Asm / Hardware 21 December 2019, 14:53
Replies: 25
Views: 1,523
Posted By bebbo
I don't understand why the generated offset...

I don't understand why the generated offset matters at all. So this should do it for vasm and as:

sym->value + target_section->output_offset
- sec->output_offset - r->addend - r->address
Forum: Coders. Asm / Hardware 20 December 2019, 23:10
Replies: 25
Views: 1,523
Posted By bebbo
Ok, I tracked it down Consider this example...

Ok, I tracked it down

Consider this example code:


_X:
nop
nop
bsr foo
rts
Forum: Coders. C/C++ 20 December 2019, 23:02
Replies: 1,219
Views: 140,604
Posted By bebbo
I'm not sure what the real error is. That's not...

I'm not sure what the real error is. That's not enough information here.
Forum: Coders. Asm / Hardware 20 December 2019, 14:04
Replies: 25
Views: 1,523
Posted By bebbo
Well, m68k-amigaos-ld inserts long jump tables...

Well, m68k-amigaos-ld inserts long jump tables and adjusts the word/short jumps to the next jump table (do you remember?)


Maybe there's an error...
Forum: Coders. C/C++ 20 November 2019, 10:35
Replies: 48
Views: 8,049
Posted By bebbo
for 'smaller' c++: - don't use...

for 'smaller' c++:


- don't use std::streams
- use -fno-exceptions -fno-rtti - unless you are really using excpetions/rtti
- use -flto
- move non-inlineable member functions into a...
Forum: Coders. C/C++ 19 November 2019, 10:53
Replies: 48
Views: 8,049
Posted By bebbo
Q1: I guess there is a WinUAE version containing...

Q1: I guess there is a WinUAE version containing a gdb server. I have no clue if my code would be helpful there.



Q2: I never tried it. I'm using Eclipse - it's working despite it needs a hack...
Forum: Coders. C/C++ 18 November 2019, 09:58
Replies: 48
Views: 8,049
Posted By bebbo
Woot! Someone is using it ;) ...

Woot! Someone is using it ;)








Since bgdbserver uses a TCP connection Forbid() will kill this too.
Forum: Coders. C/C++ 17 November 2019, 12:46
Replies: 8
Views: 587
Posted By bebbo
there are symbols: function names and symbols:...

there are symbols: function names
and symbols: debug information


despite the use of symbol for both it's different kind of information.


So it seems you are creating object files containing...
Forum: Coders. C/C++ 17 November 2019, 11:04
Replies: 8
Views: 587
Posted By bebbo
Just a side note:...

Just a side note: https://franke.ms/download/setup-amiga-gcc.exe is not compiled using cygwin - it uses msys2...
Forum: Coders. C/C++ 16 November 2019, 21:52
Replies: 8
Views: 587
Posted By bebbo
python and python-devel are both on the list of...

python and python-devel are both on the list of prerequisites.


=> Install all the listed packages rinse and repeat.
Forum: Coders. C/C++ 24 October 2019, 11:14
Replies: 1,219
Views: 140,604
Posted By bebbo
if you'd share your recipe, I'd look into it too.

if you'd share your recipe, I'd look into it too.
Forum: Coders. C/C++ 21 October 2019, 23:30
Replies: 29
Views: 1,916
Posted By bebbo
I agree, the setup is more complex. And you can...

I agree, the setup is more complex.
And you can automate the deployment and bgdbserver starting, as I with Eclipse.


a) run bgdbserver in a shared folder (shared from WinUAE and the PC). Do this...
Forum: Coders. C/C++ 21 October 2019, 22:49
Replies: 1,219
Views: 140,604
Posted By bebbo
maybe you can tell us a bit more - not only...

maybe you can tell us a bit more - not only fragments...
Forum: Coders. C/C++ 21 October 2019, 22:26
Replies: 29
Views: 1,916
Posted By bebbo
You can also source debug with my tool chain......

You can also source debug with my tool chain... -> use bgdbserver.
Plus you can debug a real Amiga.
Forum: Coders. C/C++ 21 October 2019, 15:15
Replies: 29
Views: 1,916
Posted By bebbo
I adapted tutorial 9 a bit - less allocations,...

I adapted tutorial 9 a bit - less allocations, more use of headers...

// Scoopex Tutorial 9 for Bebbo GCC 6.5.0b

#include <proto/exec.h>
#include <graphics/gfxbase.h>
#include...
Forum: Coders. C/C++ 12 October 2019, 23:52
Replies: 1,219
Views: 140,604
Posted By bebbo
please test

please test
Forum: Coders. C/C++ 12 October 2019, 22:52
Replies: 68
Views: 6,508
Posted By bebbo
you need a compiler/tool-chain which supports...

you need a compiler/tool-chain which supports different data segments with chip/fast attributes aka Amiga hunk files



With elf you have to use workarounds.
Forum: Coders. C/C++ 12 October 2019, 00:22
Replies: 1,219
Views: 140,604
Posted By bebbo
guess the last binutil merge discarded the...

guess the last binutil merge discarded the jsr->bsr optimization, or was it a gcc merge?


nm, I'll fix it

EDITH: build is running - should be live in ~1 hour.
Forum: Coders. C/C++ 11 October 2019, 21:27
Replies: 1,219
Views: 140,604
Posted By bebbo
hard to guess without more details - and yes...

hard to guess without more details - and yes there are changes in gcc too...


e.g. the support libs are now compiled with -O2 by default.



export CFLAGS_FOR_TARGET= -Os -fomit-frame-pointer...
Forum: Coders. Language 10 October 2019, 12:10
Replies: 11
Views: 3,951
Posted By bebbo
how should I know? ask there:...

how should I know?


ask there: https://github.com/redbrain/gccrs
Forum: Coders. Language 07 October 2019, 11:34
Replies: 11
Views: 3,951
Posted By bebbo
It's a different approach - another Jodeldiplom...

It's a different approach - another Jodeldiplom :crazy (https://en.wikipedia.org/wiki/Jodeldiplom)


In gcc the m68k architecture is available - it once was a main architecture...
In llvm there...
Forum: Coders. C/C++ 04 October 2019, 22:20
Replies: 9
Views: 914
Posted By bebbo
Yes that's true. Plus there is a bounty on...

Yes that's true. Plus there is a bounty on implementing it: https://www.bountysource.com/issues/80706251-m68k-convert-the-backend-to-mode_cc-so-it-can-be-kept-in-future-releases



On the other...
Forum: Coders. C/C++ 03 October 2019, 20:28
Replies: 9
Views: 914
Posted By bebbo
you know that there are pre-configured toolchains...

you know that there are pre-configured toolchains which do build binutils, gcc and even something more?


And if you'd only grab the recipes, it might be useful
Forum: Coders. C/C++ 03 October 2019, 15:24
Replies: 9
Views: 914
Posted By bebbo
the gcc is provided by binutils, gcc by gcc. ...

the gcc is provided by binutils, gcc by gcc.
both are available in various versions.
you can't combine every version of binutils with every version of gcc, but you have to use a working...
Forum: Coders. C/C++ 03 October 2019, 12:30
Replies: 9
Views: 914
Posted By bebbo
You are using a relative path. Never ever do that...

You are using a relative path. Never ever do that again when calling configure!

Plus your assembler does not match.
Forum: Coders. C/C++ 29 September 2019, 18:39
Replies: 1,219
Views: 140,604
Posted By bebbo
I made a change and initialized some pointers...

I made a change and initialized some pointers :spin
Should be live in ~ 1 hour from now
Forum: Coders. C/C++ 29 September 2019, 17:30
Replies: 1,219
Views: 140,604
Posted By bebbo
now please replace collect2 with m68k-amigaos-ld...

now please replace collect2 with m68k-amigaos-ld (also adjust the path)


valgrind /opt/amiga/bin/m68k-amigaos-ld -L/opt/amiga/lib -L/opt/amiga/m68k-amigaos/libnix/lib -o aout...
Forum: Coders. C/C++ 29 September 2019, 15:21
Replies: 1,219
Views: 140,604
Posted By bebbo
1. install valgrind 2. compile the *.c to *.o...

1. install valgrind
2. compile the *.c to *.o files:
m68k-amigaos-gcc -c *.c

3. run m68k-amigaos-gcc ... -v (using the *.o files)
m68k-amigaos-gcc -noixemul -nostartfiles -nostdlib -m68000 -o...
Forum: Coders. C/C++ 28 September 2019, 22:08
Replies: 1,219
Views: 140,604
Posted By bebbo
are you using cygwin/msys2?

are you using cygwin/msys2?
Forum: Coders. C/C++ 26 September 2019, 21:30
Replies: 19
Views: 1,258
Posted By bebbo
please use only one of -mcrt=nix13 -noixemul

please use only one of
-mcrt=nix13
-noixemul
Forum: Coders. C/C++ 26 September 2019, 18:30
Replies: 1,219
Views: 140,604
Posted By bebbo
that's a difference between const...

that's a difference between



const char text[] ...


end
Forum: Coders. C/C++ 26 September 2019, 12:28
Replies: 1,219
Views: 140,604
Posted By bebbo
I get ...

I get

/opt/amiga/lib/gcc/m68k-amigaos/6.5.0b/../../../../m68k-amigaos/bin/ld: /tmp/ccNIubOY.o: in function `mymain':
(.text+0x42): undefined reference to `memcpy'
collect2: error: ld returned 1...
Forum: Coders. C/C++ 24 September 2019, 20:36
Replies: 19
Views: 1,258
Posted By bebbo
please unhide your command line / makefile

please unhide your command line / makefile
Forum: Coders. C/C++ 23 September 2019, 22:22
Replies: 19
Views: 1,258
Posted By bebbo
my gcc toolchain is using a newlib implementation...

my gcc toolchain is using a newlib implementation as default, since the ixemul.library did not build that easily... (if someone provides a working build for my toolchain, I'll add it back - maybe...
Showing results 1 to 40 of 439

 
Forum Jump

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


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