Search found 30 matches

by tester
Sat Apr 13, 2024 11:49 pm
Forum: Coding Questions
Topic: Debug mode execution speed can vary on source whitespace.
Replies: 12
Views: 745

Re: Debug mode execution speed can vary on source whitespace.

[Win 10, X64, PB v6.10, C] Not confirmed: both are ~920-1040ms with debugger, and ~11ms without Debugger.
by tester
Wed Apr 19, 2023 7:25 pm
Forum: Coding Questions
Topic: lzma unpack speed, extremely slow on big Archiv
Replies: 10
Views: 657

Re: lzma unpack speed, extremely slow on big Archiv

Code: Select all

12th Gen Intel(R) Core(TM) i5-12500
FileSize: 538 MiB, unpack time:
  PB: 23554 ms
 7zr: 19141 ms
PureBasic is 23% slower
Not such a big difference.
by tester
Mon Mar 27, 2023 5:33 pm
Forum: Tricks 'n' Tips
Topic: Min and max values of an array
Replies: 24
Views: 3564

Re: Min and max values of an array

mk-soft wrote: Mon Mar 27, 2023 5:26 pm
Lunasole wrote: Mon Mar 27, 2023 4:36 pm
mk-soft wrote: Mon Mar 27, 2023 4:12 pm Doesn't work under c-backend anyway. It is written in ASM.
Why should not? I thought C-backend also supports ASM parts (and it should)
Must be rewritten from ASM -> C-Backend ASM
We are waiting for someone who can help with this. :)
by tester
Mon Mar 27, 2023 3:55 pm
Forum: Tricks 'n' Tips
Topic: Min and max values of an array
Replies: 24
Views: 3564

Re: Min and max values of an array

Not working with C-backend PB601 - Error: 'EndModule' is missing.
by tester
Sun Sep 18, 2022 9:23 pm
Forum: Coding Questions
Topic: DeviceIoControl API call with FSCTL_GET_VOLUME_BITMAP
Replies: 10
Views: 805

Re: DeviceIoControl API call with FSCTL_GET_VOLUME_BITMAP

A bit more extended: EnableExplicit #IOCTL_STORAGE_READ_CAPACITY = $2D5140 #FSCTL_GET_VOLUME_BITMAP = $0009006F Structure STORAGE_READ_CAPACITY Align #PB_Structure_AlignC Version.l Size.l BlockLength.l NumberOfBlocks.LARGE_INTEGER DiskLength.LARGE_INTEGER EndStructure Structure STARTING_VCN_INPUT_B...
by tester
Sun Aug 28, 2022 9:36 pm
Forum: Coding Questions
Topic: Question about packer
Replies: 7
Views: 581

Re: Question about packer

idle wrote: Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Great job :!: .
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.
by tester
Sat Jun 25, 2022 4:57 pm
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 4545

Re: Unpacking .7z *with* subdirectories

StarWarsFan wrote: Sat Jun 25, 2022 11:45 am...Obviously some archives collide with the way NextPackEntry() is conducted. => on some archives it returns #false (0) here and the loop is not executed...
Can you provide a sample of such an "incorrect" archive?
by tester
Wed Nov 10, 2021 8:02 pm
Forum: Coding Questions
Topic: [Done] 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?
Replies: 7
Views: 2448

[Done] 6.0 alpha 5 x86 - #PB_Structure_AlignC wrong align?

Code: Select all

Structure proto Align #PB_Structure_AlignC
  a.q
  b.l
EndStructure

Debug SizeOf(proto)

; PB 6.0 alpha 5 x86 ASM Backend & C Backend:
; [Debug] 12
;
; PB 5.73 x86:
; [Debug] 16
by tester
Mon Jul 19, 2021 7:05 pm
Forum: Coding Questions
Topic: LUA Static linking
Replies: 16
Views: 3049

Re: LUA Static linking

The standalone exe file is ~180-190 KB.
by tester
Mon Jul 19, 2021 2:18 pm
Forum: Coding Questions
Topic: LUA Static linking
Replies: 16
Views: 3049

Re: LUA Static linking

The static library linked successfully with PB 5.73 - 6 Alpha x86/x64 when compiled in VS2013 with the following settings:

Code: Select all

General -> Whole Program Optimization:NO
Librarian -> Additional Dependencies:msvcrt.lib
by tester
Mon Mar 22, 2021 10:52 pm
Forum: Tricks 'n' Tips
Topic: SetFileDate() also on folders
Replies: 4
Views: 1374

Re: SetFileDate() also on folders

Works on W10 X64/X86 only when using the following code: Import "" ; Kernel32 TzSpecificLocalTimeToSystemTime(*lpTimeZoneInformation.TIME_ZONE_INFORMATION, *LocalTime.SYSTEMTIME, *UniversalTime.SYSTEMTIME) ; BOOL WINAPI TzSpecificLocalTimeToSystemTime( ; _In_opt_ LPTIME_ZONE_INFORMATION lp...
by tester
Sun Dec 06, 2020 10:51 pm
Forum: Tricks 'n' Tips
Topic: cpuinfo module
Replies: 24
Views: 13456

Re: cpuinfo module

BarryG wrote:How do you use #PB_CPU_HYPERVISOR from the original post in this thread? I tried the following line but I get an error about the constant #PB_CPU_HYPERVISOR not found, but it's in the Enumerations?

Code: Select all

Debug CPUInfo::IsCPU(#PB_CPU_HYPERVISOR)

Code: Select all

Debug CPUInfo::IsCPU(CPUInfo::#PB_CPU_HYPERVISOR)