Search found 86 matches

by juergenkulow
Sat Nov 27, 2021 7:03 pm
Forum: Bugs - C backend
Topic: Erros on macOS
Replies: 3
Views: 131

Re: Erros on macOS

Inlined ASM won't work in the C backend, at least not directy like it was. We have some plans but it will need to adapt code. [/url] Procedure Test() Protected reg_b.q ! mov [p.v_reg_b], rbx ;// backup rbx EndProcedure Test() ; PureBasic 6.00 Beta 1 - C Backend (Linux - x64) ; Error: Assembler ; er...
by juergenkulow
Sat Nov 27, 2021 1:09 pm
Forum: Bugs - C backend
Topic: PB 6.00B1 - Fatal arithmetic error using Maps
Replies: 7
Views: 346

Re: PB 6.00B1 - Fatal arithmetic error using Maps

PB_CreateMapElement can not handle map in map. ; [08:25:32] Warte auf den Start des Executable... ; [08:25:32] Executable-Typ: Windows - x64 (64bit, Unicode) ; [08:25:32] Executable gestartet. ; [08:25:32] [ERROR] maps.pb (Zeile: 43) ; [08:25:32] [ERROR] Division durch Null. ; 000000014000164D | F77...
by juergenkulow
Sat Nov 27, 2021 4:15 am
Forum: Coding Questions
Topic: PB v6.0 Beta 1 C output?
Replies: 6
Views: 416

Re: PB v6.0 Beta 1 C output?

pbcompilerc outputs: "No authorization". kulow@kulow-VGN-AR51SU:/tmp/purebasicBeta1/compilers$ dir debugger.a pbdebugger stringmanagercthreadpurifier.a dynamicconstructor.o pbdocmaker stringmanagerpurifier.a engine3d.so pblibrarymaker stringmanagerthread.a fasm pbsoimporter stringmanagerth...
by juergenkulow
Tue Nov 23, 2021 6:17 am
Forum: General Discussion
Topic: Does the datasection stay in the memory for all the time while a program is running
Replies: 17
Views: 918

[Done] Re: Does the datasection stay in the memory for all the time while a program is running

; DLLImage ProcedureDLL.i startdata() ProcedureReturn ?start EndProcedure DataSection Start: IncludeBinary "PureBasic.bmp" ; Please adapt. EndDataSection CompilerIf #PB_Compiler_ExecutableFormat<>#PB_Compiler_DLL CompilerError "Please use Compiler Option Executable Format DLL and Com...
by juergenkulow
Mon Nov 22, 2021 10:15 pm
Forum: General Discussion
Topic: Does the datasection stay in the memory for all the time while a program is running
Replies: 17
Views: 918

Re: Does the datasection stay in the memory for all the time while a program is running

; Datasection Section *ptr.Byte=?Start *ptr\b=49 ; ! pb_data[0]=48; Read.b i Read.b j Read.s s.s SetClipboardText(Str(i)+" "+Str(j)+" "+s) DataSection Start: Data.b 47,11 Data.s "Hello Universe" EndDataSection ; C Backend: ; unsigned char pb_data[] = {47,11 ; ,0x48,0x0...
by juergenkulow
Sat Nov 20, 2021 9:10 pm
Forum: Bugs - C backend
Topic: [Done] 6.0 alpha 5 x64 - Reading data doesn't work
Replies: 7
Views: 922

Re: 6.0 alpha 5 x64 - Reading data doesn't work

; Restore Label not in Datasection - Do you understand this error message? ; error: 'l_label' undeclared (first use in this function); did you mean 'la_l_label'? ; pb_datapointer=&pb_data[l_label]; ; ^~~~~~~ ; la_l_label ; purebasic.c:93:25: note: each undeclared identifier is reported only onc...
by juergenkulow
Thu Nov 18, 2021 7:30 am
Forum: Assembly Programming
Topic: PS2=64 - What instruction is this?
Replies: 7
Views: 887

Re: PS2=64 - What instruction is this?

@ricardo_sdl
What debbuger are you using to see what is happening on the stack and in the registers?
by juergenkulow
Tue Nov 16, 2021 5:28 am
Forum: Coding Questions
Topic: 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?
Replies: 6
Views: 1304

Re: 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?

What is the rule behind #PB_Structure_AlignC? ; What does #PB_Structure_AlignC actually do? Structure Struct Align #PB_Structure_AlignC : a.a : q.q : a2.a : l.l : a3.a : w.w : EndStructure Structure Struct10 Align #PB_Structure_AlignC : a.a[10] : q.q : a2.a : l.l : a3.a : w.w : EndStructure Structu...
by juergenkulow
Sun Nov 14, 2021 7:56 am
Forum: Coding Questions
Topic: 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?
Replies: 6
Views: 1304

Re: 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?

#include <stdio.h> struct longlong { long l1; long l2; }; struct mystruct { struct longlong a; long b;}; int main() { struct mystruct my; printf("sizeof(my):%i",sizeof(my)); } //Visual C++ 6.0:Windows 2000 SP 4: sizeof(my):12 #PB_Structure_AlignC = -1 exist since 2013 Version 5.10. 'Align...
by juergenkulow
Thu Nov 11, 2021 10:29 am
Forum: Coding Questions
Topic: 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?
Replies: 6
Views: 1304

Re: 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?

Structure proto Align #PB_Structure_AlignC a.q b.l EndStructure s.s= "Compiler Version: "+Str(#PB_Compiler_Version)+#CRLF$ If #PB_Compiler_Processor=#PB_Processor_x86 s+"x86"+#CRLF$ ElseIf #PB_Compiler_Processor=#PB_Processor_x64 s+"x64"+#CRLF$ EndIf CompilerIf Defined...
by juergenkulow
Wed Nov 10, 2021 12:35 pm
Forum: Coding Questions
Topic: Why the type LONG work differently in x86 and x84 complier?
Replies: 19
Views: 1321

Re: Why the type LONG work differently in x86 and x84 complier?

; //If l=$ffffff85 ; C backend x86: ; If (!(v_l==-123)) { goto no2; } ; C backend x64: ; If (!(v_l==4294967173)) { goto no2; } ; ASM backend x86: ; MOV ebx,dword [v_l] ; CMP ebx,-123 ; JNE _EndIf2 ; ASM backend x64 ; MOVSXD r15,dword [v_l] ; MOV rax,4294967173 ; CMP r15,rax ; JNE _EndIf2
by juergenkulow
Mon Nov 08, 2021 4:48 pm
Forum: Coding Questions
Topic: Download without HTTP?
Replies: 7
Views: 856

Re: Download without HTTP?

Do you try curl?

Code: Select all

RunProgram("curl","--output "+GetUserDirectory(#PB_Directory_Downloads)+
                  "PureBasic.lzx https://www.purebasic.com/download/PureBasic.lzx","",
                  #PB_Program_Wait)
by juergenkulow
Sat Nov 06, 2021 8:32 am
Forum: Announcement
Topic: PureBasic 6.00 Beta 1 released !
Replies: 305
Views: 64739

Re: PureBasic 6.00 Alpha 5 released !

@User_Russian,
do you have examples how /SSE2, /SSE, /3DNOW, /MMX, /DYNAMICCPU can generate better results throught pbcompilerc gcc?
by juergenkulow
Wed Nov 03, 2021 11:13 am
Forum: Announcement
Topic: PureBasic 6.00 Beta 1 released !
Replies: 305
Views: 64739

Re: PureBasic 6.00 Alpha 5 released !

@Rinzwind Optimize calls the -O2 option only with the C compiler GCC.
/gcc/Optimize-Options.html
by juergenkulow
Mon Nov 01, 2021 2:53 pm
Forum: Bugs - Windows
Topic: [6.00] beta5, Windows missing "glut32.lib"
Replies: 1
Views: 1418

Re: [6.00] beta5, Windows missing *.lib

I miss even more Windows libraries in Alpha5: atl.lib bdnapi.lib cap.lib ctl3d32.lib d3dim.lib d3drm.lib d3dxof.lib dapi.lib ddraw.lib dflayout.lib dinput_a.lib dlcapi.lib dplay.lib dplayx.lib dsetup.lib dsound.lib edbbcli.lib glut32.lib hlink.lib icmp.lib mslsp32.lib nal.lib ntdll.lib penwin32.lib ...