Bernd Böckmann · @boeckmann
8 followers · 58 posts · Server nerdculture.de

Port of Partition Manager to C and seems to be nearly complete 🙂

The port of the Advanced Boot Manager, which was the tricky part, is running.

codeberg.org/boeckmann/ranish

#Ranish #Watcom #nasm

Last updated 2 years ago

Bernd Böckmann · @boeckmann
8 followers · 58 posts · Server nerdculture.de

I made significant progress in porting Ranish Partition Manager from and to C and .

All the C files and about half the assembler files are translated. The Watcom built executable is running and a few quick tests revealed no unexpected behaviour. Thoroughly testing has still to be done after the remaining files are translated.

codeberg.org/boeckmann/ranish

#borland #c #TASM #Watcom #nasm

Last updated 2 years ago

Bernd Böckmann · @boeckmann
8 followers · 58 posts · Server nerdculture.de

Implementation defined behaviour in : Folgendes packt C einen char, in einen int:

unsigned start_sect:6;
unsigned start_cylH:2;

Daher Struktur unter Borland 16 bytes und unter Watcom 18 🤡

Es muss leider ein char sein. Watcom erlaubt folgendes, um es gerade zu biegen:

unsigned char start_sect:6;
unsigned char start_cylH:2;

Nicht erlaubt laut Standard: "A bit-field shall have a type that is a qualified or unqualified version of one of int, unsigned int, or signed int."

#c #borland #Watcom

Last updated 2 years ago

Bernd Böckmann · @boeckmann
8 followers · 58 posts · Server nerdculture.de

Hier sieht man sehr schön: Unterschiedliche , unterschiedliches Laufzeitverhalten des Programmes. Die linke Version ist mit kompiliert, die rechte mit C.

Die Daten werden direkt von Platte in eine C Struktur geladen. Dabei sollte man tunlichst auf die Ausrichtung der Strukturelemente achten, sonst kommt Käse wie im rechten Bild raus.

Wen es interessiert: Eric S. Raymond hat eine interessante Abhandlung darĂĽber geschrieben: catb.org/esr/structure-packing

#compiler #borland #c #Watcom

Last updated 2 years ago

Bernd Böckmann · @boeckmann
8 followers · 58 posts · Server nerdculture.de

@profoundlynerdy There is also a clone included with the C/C++ compilers. I Like that most when working under / .

#vi #Watcom #dos #windows

Last updated 2 years ago