English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 497
Search took 0.05 seconds.
Search: Posts Made By: bebbo
Forum: Coders. C/C++ 22 February 2021, 10:12
Replies: 2
Views: 249
Posted By bebbo
Arrow I prefer to use only: -noixemul PS:...

I prefer to use only:
-noixemul

PS: https://github.com/bebbo/amiga-gcc/wiki/Libraries
Forum: Coders. C/C++ 02 February 2021, 09:53
Replies: 1,249
Views: 178,481
Posted By bebbo
int __saveds QBobFunc(struct myBltNode *node...

int __saveds QBobFunc(struct myBltNode *node asm("a1"))
{
...
}



__saveds is only needed if a baserel data model is used - it means that the function loads the a4 register. Useful in...
Forum: Coders. C/C++ 02 February 2021, 09:50
Replies: 1,249
Views: 178,481
Posted By bebbo
the bgdbserver allows you to debug your program...

the bgdbserver allows you to debug your program on the Amiga remotely.
What you need is a working TCP/IP stack on your Amiga, then you can debug the program even on a real Amiga.


debugging >...
Forum: Coders. C/C++ 01 February 2021, 17:52
Replies: 14
Views: 1,416
Posted By bebbo
Quick guess: Your "phantom memory loss" is...

Quick guess:
Your "phantom memory loss" is related to your console history/buffer.

EDIT:

more time to write now:

I can run that example program over and over and the memory reported by...
Forum: Coders. C/C++ 06 January 2021, 16:55
Replies: 5
Views: 577
Posted By bebbo
you might also consider int...

you might also consider


int scandir(const char *dirname,struct dirent ***namelist,
int (*select)(const struct dirent *),
int (*dcomp)(const struct dirent **, const struct dirent **))...
Forum: support.WinUAE 04 January 2021, 21:35
Replies: 4
Views: 685
Posted By bebbo
good to know :spin I disabled JIT and was...

good to know :spin


I disabled JIT and was able to hunt down the culprit. libpthread is working better now and libnix provides thread safe FILE functions (if all is build for thread usage)^^

...
Forum: support.WinUAE 01 January 2021, 19:09
Replies: 4
Views: 685
Posted By bebbo
(spam the exe and pray) never mind -...

(spam the exe and pray)



never mind - I found the real cause^^ - but IMHO WinUAE should not crash^^


HNY2021
Forum: support.WinUAE 31 December 2020, 16:43
Replies: 4
Views: 685
Posted By bebbo
crash if JIT is enabled

I'm testing libpthread atm... and I get a WinUAE crash if JIT is enabled:



WinUAE message


JIT: serious error
JIT: 64-bit pointer (0xffffffffffffff8b) at...
Forum: Coders. C/C++ 31 December 2020, 15:04
Replies: 26
Views: 1,698
Posted By bebbo
you could precompute the "stack" Rename...

you could precompute the "stack"


Rename DrawSection to PreComputeSection and add a 2nd parameter.
Replace the real drawing part with an update to ordered.
You'll end up with a null terminated...
Forum: Coders. C/C++ 30 December 2020, 22:23
Replies: 26
Views: 1,698
Posted By bebbo
and with a little bit more if/else the 2nd stack...

and with a little bit more if/else the 2nd stack can be spared


void DrawSection(const Section *section) {
const Section *stack[STACKSIZE];
const Section **stackTop = stack;

// mark end...
Forum: Coders. C/C++ 30 December 2020, 20:58
Replies: 26
Views: 1,698
Posted By bebbo
nice - what compiler/options do you use? ...

nice - what compiler/options do you use?


Would you test one more variant?

void DrawSection(const Section *section) {
const Section *stack[STACKSIZE];
const Section...
Forum: Coders. C/C++ 30 December 2020, 19:52
Replies: 26
Views: 1,698
Posted By bebbo
I forgot a ++listTop; after the inner for(;;)...

I forgot a ++listTop; after the inner for(;;) loop - the listTop was moved to the terminating zero and must not kill this^^
Forum: Coders. C/C++ 30 December 2020, 17:05
Replies: 26
Views: 1,698
Posted By bebbo
first here is a maybe faster version, I would not...

first here is a maybe faster version, I would not count on the recursive version to be faster, since each call with the register push/pops takes also time

void DrawSection(const Section *section)...
Forum: Coders. C/C++ 30 December 2020, 10:45
Replies: 26
Views: 1,698
Posted By bebbo
untested...: // use even numbers cos of...

untested...:

// use even numbers cos of char...
#define STACKSIZE 100
#define MAXPUSHPERLOOP 4

void DrawSection(const Section *section) {
const Section *stack[STACKSIZE];
char...
Forum: Coders. C/C++ 29 December 2020, 23:53
Replies: 12
Views: 2,027
Posted By bebbo
fix for this specific issue is queued - should be...

fix for this specific issue is queued - should be live soon


(gdb) list
1 #include <stdio.h>
2
3 int main(int argc, char** argv)
4 {
5 for(int i=0;i<argc;i++)
6 ...
Forum: Coders. C/C++ 29 December 2020, 23:52
Replies: 26
Views: 1,698
Posted By bebbo
My "simple" approach: 1. use a stack 2....

My "simple" approach:

1. use a stack
2. push the initial value
3. loop over the stack and pop until it gets empty
4. fill a list during loop and collect all values of recursive calls
5. push...
Forum: Coders. C/C++ 29 December 2020, 23:37
Replies: 12
Views: 2,027
Posted By bebbo
1. your example does not compile fixed version...

1. your example does not compile
fixed version is
#include <stdio.h>

int main(int argc, char** argv)
{
for(int i=0;i<argc;i++)
printf("Arg #%d -> %s\n",i,argv[i]);
return 0;
}
Forum: Coders. C/C++ 22 December 2020, 14:32
Replies: 28
Views: 2,262
Posted By bebbo
this looks wrong: do { ...

this looks wrong:

do
{
if(GetMsg(_con_reply_port))
{
// Nothing to do
}
else
{
Forum: Coders. C/C++ 11 December 2020, 08:10
Replies: 28
Views: 2,262
Posted By bebbo
guess you'd have to use a static variable ...

guess you'd have to use a static variable



#pragma pack(push,4)
static struct StandardPacket con_standard_packet;
#pragma pack(pop)
Forum: Coders. C/C++ 09 December 2020, 16:54
Replies: 28
Views: 2,262
Posted By bebbo
you might enhance your code and do less...

you might enhance your code and do less alloc/free by using stack vars like

struct StandardPacket con_standard_packet;
char received_char = '\0';
ULONG ...
Forum: Coders. C/C++ 04 December 2020, 20:07
Replies: 21
Views: 1,688
Posted By bebbo
How do you start your threads? Maybe you could...

How do you start your threads? Maybe you could set the seglist for your threads?



newProc = CreateNewProcTags(NP_Entry, (ULONG )startProc,
NP_FreeSeglist, 0,
...);

...
Forum: Coders. C/C++ 24 November 2020, 20:26
Replies: 1,249
Views: 178,481
Posted By bebbo
the correct link is:...

the correct link is: https://franke.ms/download/bgdbserver_6.zip - I updated the page. Thank you!
Forum: News 18 November 2020, 12:09
Replies: 36
Views: 8,858
Posted By bebbo
don't forget to replace the RasPi with a MacBook...

don't forget to replace the RasPi with a MacBook Pro with the new M1 cpu...
Forum: Coders. C/C++ 02 November 2020, 19:46
Replies: 44
Views: 2,947
Posted By bebbo
multiplying a const? here you go: move.w...

multiplying a const? here you go:


move.w #$fff6,d0 ; this is #$ffff * 10 in word size.

:bash
Forum: Coders. C/C++ 02 November 2020, 14:40
Replies: 44
Views: 2,947
Posted By bebbo
I'm referring to this doc:...

I'm referring to this doc: https://www.nxp.com/docs/en/reference-manual/MC68000UM.pdf
Forum: Coders. C/C++ 02 November 2020, 14:39
Replies: 44
Views: 2,947
Posted By bebbo
your slower example is using longs - something...

your slower example is using longs - something you can't do with mulu in the 68k. Also add.l takes only 6 cycles.


so using .w in the first example yields 16 cycles less - which is 38.



And...
Forum: Coders. C/C++ 02 November 2020, 14:22
Replies: 44
Views: 2,947
Posted By bebbo
I'd say it takes 48 cycles: "The multiply...

I'd say it takes 48 cycles:


"The multiply algorithm requires 42+2n clocks where n is defined as: MULS: n = tag the with a zero as the MSB; n is the resultant number of 10 or 01 patterns in the...
Forum: Coders. C/C++ 31 October 2020, 13:55
Replies: 44
Views: 2,947
Posted By bebbo
and here a C/asm version for 68020: void...

and here a C/asm version for 68020:

void SetPixel3(const UWORD x, const UWORD y, UWORD colour) {
short j;
UBYTE * p = ((UBYTE *) currentBuffer) + y * DISPLAY_WIDTH_IN_BYTES *...
Forum: Coders. C/C++ 31 October 2020, 13:21
Replies: 44
Views: 2,947
Posted By bebbo
what about this one: void SetPixel(const...

what about this one:

void SetPixel(const UWORD x, const UWORD y, const UWORD color) {
UWORD i;
short j;
UBYTE * p = ((UBYTE *) currentBuffer) + y * DISPLAY_WIDTH_IN_BYTES *...
Forum: support.Other 26 October 2020, 20:52
Replies: 122
Views: 2,154
Posted By bebbo
guess I read only the half... but... ... I...

guess I read only the half... but...
... I could drag my Picasso screen down all the time!?

What did I miss?
Forum: Coders. C/C++ 14 October 2020, 15:23
Replies: 1,249
Views: 178,481
Posted By bebbo
if you compile and link with -noixemul...

if you compile and link with


-noixemul -m68020



the program should show a recoverable alert with something like 00068020
... if not ... uhm ... it needs a fix^^
Forum: News 13 August 2020, 17:31
Replies: 808
Views: 65,522
Posted By bebbo
wonderful! Congrats!!

wonderful! Congrats!!
Forum: Coders. C/C++ 10 August 2020, 11:27
Replies: 82
Views: 18,483
Posted By bebbo
an empty file should do it. plus you have...

an empty file should do it.


plus you have to configure that file in Eclipse with abolute path
in the Debug settings what gdbinit file to use. Set it in the preferences and it's there in new...
Forum: Coders. C/C++ 09 August 2020, 00:45
Replies: 82
Views: 18,483
Posted By bebbo
sounds dumb... but... create a .gdbinit...

sounds dumb... but...


create a .gdbinit file in your home folder
Forum: Coders. C/C++ 09 August 2020, 00:44
Replies: 82
Views: 18,483
Posted By bebbo
The installation failure is not related to that...

The installation failure is not related to that minor issue. Workaround:


Install 2019-12, install Amiga-CDT and perform an update -> you get 2020-06.
Forum: Coders. C/C++ 22 July 2020, 22:35
Replies: 1,249
Views: 178,481
Posted By bebbo
linking stdlibs into a library - obviously...

linking stdlibs into a library - obviously without startup - means that nothing is initialized properly... adding c++ may adds further stuff which needs initialization. And exceptions thrown from a...
Forum: Coders. C/C++ 16 July 2020, 19:51
Replies: 3
Views: 925
Posted By bebbo
1. track which gadget is the current gadget 2....

1. track which gadget is the current gadget
2. enable IDCMP_RAWKEY events
3. handle the IDCMP_RAWKEY and update/check the gadget as you like
Forum: Coders. C/C++ 26 June 2020, 14:38
Replies: 82
Views: 18,483
Posted By bebbo
Your telnet plugin is working, your program gets...

Your telnet plugin is working, your program gets started remotely.


Does your program run without debugger? And is it really the same as your local version?
Forum: Coders. C/C++ 08 June 2020, 19:27
Replies: 21
Views: 2,507
Posted By bebbo
Uh, oh, forgot that option... ... then...

Uh, oh, forgot that option...


... then you have to add a search over all path elements...
... still feasible!


struct AssignList * al = (struct AssignList *)BADDR(cli->cli_CommandDir);...
Forum: Coders. C/C++ 08 June 2020, 13:02
Replies: 21
Views: 2,507
Posted By bebbo
The standard way: use current directory =...

The standard way:


use current directory = curdir
use program name = argv[0] = prog


if prog is absolute then
use prog
else
Showing results 1 to 40 of 497

 
Forum Jump

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


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