News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#1
User contributions / Re: External Sorting Algorithm
Last post by cosh - Today at 07:44:18 AM
Quote from: TimoVJL on Yesterday at 09:50:08 AMJust Pelles C projects from those files for test.
Thank you for uploading test files for SVXS!
#2
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - Yesterday at 11:36:44 AM
Hi,

Please unzip and use the version of the database that comes with the new version of Hint_SA.

John Z
#3
User contributions / Re: External Sorting Algorithm
Last post by TimoVJL - Yesterday at 09:50:08 AM
Just Pelles C projects from those files for test.
#4
User contributions / External Sorting Algorithm
Last post by cosh - July 10, 2025, 03:58:40 AM
Hi, fellows.
I recently write an external sorting algorithm and tested it by Pelles C compiler.
https://github.com/coshcage/StoneValley/blob/master/Examples/svxs.h
https://github.com/coshcage/StoneValley/blob/master/Examples/svxs.c
External sorting is a type of sorting algorithm that is used to sort data on an external storage, typically disk.
We all know that the capacity of a disk usually is larger than internal memory (RAM).
The question is how we can sort a massive of data on disk by using limited memory and simultaneously maintain a rapid running speed.
External sorting algorithm is born for this situation.

The implementation of external sorting is at svxs.c and function svXSort is exported to svxs.h.
The usage of function svXSort is listed below:
svXSort
(
[output file],
[input file],
[how many elements to be sorted in the input file],
[how many elements can be loaded into RAM],
[size of an element],
[callback comparator]
);  // Returns 0 for no error.
The final question is how we can test this algorithm.
There is a complete guide at the tail of file svxs.h.

The external sorting function needs StoneValley to be compiled.
*) If svmisc.c(319): error #2083: Invalid address of 'st' with storage class 'register'. this error occurs during compiling your project, please delete the 'REGISTER' qualifier at svmisc.c line 319 and re-compile it again.

There you go, thank you guys to read this article and use my external sorting function.
I'm here to wait for your replies.
#5
Assembly discussions / Re: Unicode strings in Assembl...
Last post by TimoVJL - July 09, 2025, 03:15:51 PM
The poasm.exe is far better tool to basic asm things than ml64.exe
I don't need an assembler, but just being keen to verify them.
#6
Assembly discussions / Re: Unicode strings in Assembl...
Last post by Pelle - July 09, 2025, 12:07:34 PM
Quote from: Vortex on July 08, 2025, 08:58:13 PMThanks for the new release of Poasm fixing the issue. Tested both of the UTF8 and UTF16 encodings.
OK, good to know. Thanks!
#7
User contributions / Re: Hint_SA (Standalone)
Last post by Phil - July 09, 2025, 11:20:46 AM
Error Message : SQL error: no such column: HeaderC
Just after clicking on the "Go" button

With version v111

#8
Assembly discussions / Re: Unicode strings in Assembl...
Last post by Vortex - July 08, 2025, 08:58:13 PM
Hi Pelle,

Thanks for the new release of Poasm fixing the issue. Tested both of the UTF8 and UTF16 encodings.
#9
Assembly discussions / Re: Unicode strings in Assembl...
Last post by Pelle - July 08, 2025, 06:17:41 PM
Quote from: TimoVJL on July 08, 2025, 03:25:38 PMUTF-8 support is a very good thing and might not slow down assembly phase so much.
Yeah, today (2025) UTF-8 is probably more useful than "ANSI" (with all it's different default code pages). I will later remove the slightly annoying warning about "is UTF-8, was ANSI...".
Character conversions are such a small part of the whole process that it would surprise me if it can be measured at all (at least if we stay away from 32 MB strings ;)).

Quote from: LeraUnu on July 08, 2025, 04:05:40 PMI tried with UTF-8 and UTF16-LE encodings and both works.

Thank you!
Very good. Thank you!

( I will later add this new POASM to the Setup, but not just yet... )

#10
Assembly discussions / Re: Unicode strings in Assembl...
Last post by LeraUnu - July 08, 2025, 04:05:40 PM
Hi Pelle,

I tried with UTF-8 and UTF16-LE encodings and both works.

Thank you!