This is an interesting request, but is probably not necessary, since there's a simple way of implementing it.
The 20,000+ items presumably already exist in a file which must be converted into source code. The Data Section would look something like this:
Code: Select all
DataSection
IncludeFile "filename"
EndDataSection
We use a small program to convert the original data file into a series of Data statements, with the data converted into 4-byte hex constants, such as:
When our application starts, the encoded data in the DataSection is expanded into arrays for ease of processing.
It's a simple technique that can handle all types of data, and gets around the problem of having to provide customers with small data files as well as the executable code.
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan