Wiki improvements

Forum for discussion about the documentation project.
fxm
Moderator
Posts: 10441
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Postby fxm » May 18, 2021 8:54

@CoderJeff:

A last point for SCREENCONTROL (comparing commit text and fbc source)

In fbc 64-bit:
dim param as longint = &h80000000
initializes 'param' with +2147483648 but not -2147483648
What to choose as initializer value (rather as in the fbc source I guess)?
(but it is probably without consequences)
coderJeff
Site Admin
Posts: 3530
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Wiki improvements

Postby coderJeff » May 18, 2021 23:37

The only places the default value of &H80000000 is checked:
- SET_WINDOW_POS ... don't set X or Y position if parameter value is &H80000000
- SET_PEN_POS ... don't set X or Y position if parameter value is &H80000000
- SET_ALPHA_PRIMITIVES ... no change if parameter value is &H80000000

For all other SET_* functions, the parameter value is used as-is.

For all GET_* operations, parameter values (including &H8000000) have no effect.
fxm
Moderator
Posts: 10441
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Postby fxm » Jul 18, 2021 19:38

@Jeff,

changelog.txt:
Version 1.09.0
[changed]
- rtlib: freebsd: minimum thread stacksize 8192 KiB

Does this mean that the new default value of the '-t < stack size >' compiler option has been changed to 8192 KBytes for the freebsd platform? , for 32-bit? , for 64-bit?
MrSwiss
Posts: 3842
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Wiki improvements

Postby MrSwiss » Jul 18, 2021 21:08

It clearly states: thread stack which is different from application stack, which the -t switch addresses.
coderJeff
Site Admin
Posts: 3530
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Wiki improvements

Postby coderJeff » Jul 18, 2021 21:47

fxm wrote:changed to 8192 KBytes for the freebsd platform? , for 32-bit? , for 64-bit?


For the stack size in ThreadCreate

I just noticed my units are wrong - should be 8192 BYTES minimum for FreeBSD. Anything less was causing threading to crash.

On other platforms, the minimum is decided by the pthreads library at the time that fbrt library is compiled.
fxm
Moderator
Posts: 10441
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Postby fxm » Jul 20, 2021 8:12

Posts regarding the new '-entry' compiler option have been moved to a new topic in the Documentation forum:
Compiler Option: -entry

Return to “Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest