menjaraz
menjaraz

Reputation: 7575

Harnessing AsmXML with Delphi

AsmXML written by Marc Kerbiquet seems to be promising as an xml parser. I want to harness it further with Delphi but I stumble because of an object format compatibily issue. Is it possible to tweak the fasm source code to fix the trouble or should it ported to Tasm32 ?

Upvotes: 3

Views: 450

Answers (2)

Rudy Velthuis
Rudy Velthuis

Reputation: 28826

I'd like to link you to two articles of mine, describing how to use .obj files with Delphi (but currently only for 32 bit) and how to use NASM (sorry, not FASM) with Delphi. They also mention the tools you might need, like objconv.

Upvotes: 1

Arnaud Bouchez
Arnaud Bouchez

Reputation: 43043

You do not have to convert it to be compiled by Delphi.

You can simply use the generated object files then convert it to .obj using some tool like the one provided here.

Then the small asm-xml.h can be converted to a small Delphi unit, calling the external .obj files. Then you'll have a new unit.

Put I doubt it will be worth it. For instance, you'll loose 64 bit compilation. Parsing and inlining the data is a very common pattern for best speed. I've used a similar technique for JSON in pure pascal, and it is very fast - see JSON vs XML parsing speed in Delphi

This parser is very fast, but also very simple, and IMHO lacks a lot of XML related functionalities. The bottleneck won't be parsing, but storing or searching, in most cases.

Upvotes: 3

Related Questions