Forum: Coders. C/C++
22 February 2021, 10:12
|
Replies: 2
Views: 249
|
Forum: Coders. C/C++
02 February 2021, 09:53
|
Replies: 1,249
Views: 178,481
|
Forum: Coders. C/C++
02 February 2021, 09:50
|
Replies: 1,249
Views: 178,481
|
Forum: Coders. C/C++
01 February 2021, 17:52
|
Replies: 14
Views: 1,416
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
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
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
|
Forum: support.WinUAE
31 December 2020, 16:43
|
Replies: 4
Views: 685
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
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
|
Forum: Coders. C/C++
30 December 2020, 20:58
|
Replies: 26
Views: 1,698
|
Forum: Coders. C/C++
30 December 2020, 19:52
|
Replies: 26
Views: 1,698
|
Forum: Coders. C/C++
30 December 2020, 17:05
|
Replies: 26
Views: 1,698
|
Forum: Coders. C/C++
30 December 2020, 10:45
|
Replies: 26
Views: 1,698
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
|
Forum: Coders. C/C++
29 December 2020, 23:52
|
Replies: 26
Views: 1,698
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
|
Forum: Coders. C/C++
22 December 2020, 14:32
|
Replies: 28
Views: 2,262
|
Forum: Coders. C/C++
11 December 2020, 08:10
|
Replies: 28
Views: 2,262
|
Forum: Coders. C/C++
09 December 2020, 16:54
|
Replies: 28
Views: 2,262
|
Forum: Coders. C/C++
04 December 2020, 20:07
|
Replies: 21
Views: 1,688
|
Forum: Coders. C/C++
24 November 2020, 20:26
|
Replies: 1,249
Views: 178,481
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
|
Forum: Coders. C/C++
02 November 2020, 19:46
|
Replies: 44
Views: 2,947
|
Forum: Coders. C/C++
02 November 2020, 14:40
|
Replies: 44
Views: 2,947
|
Forum: Coders. C/C++
02 November 2020, 14:39
|
Replies: 44
Views: 2,947
|
Forum: Coders. C/C++
02 November 2020, 14:22
|
Replies: 44
Views: 2,947
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
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
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
|
Forum: Coders. C/C++
14 October 2020, 15:23
|
Replies: 1,249
Views: 178,481
|
Forum: News
13 August 2020, 17:31
|
Replies: 808
Views: 65,522
|
Forum: Coders. C/C++
10 August 2020, 11:27
|
Replies: 82
Views: 18,483
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
|
Forum: Coders. C/C++
09 August 2020, 00:44
|
Replies: 82
Views: 18,483
|
Forum: Coders. C/C++
22 July 2020, 22:35
|
Replies: 1,249
Views: 178,481
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
|
Forum: Coders. C/C++
26 June 2020, 14:38
|
Replies: 82
Views: 18,483
|
Forum: Coders. C/C++
08 June 2020, 19:27
|
Replies: 21
Views: 2,507
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
|