flat assembler
Message board for the users of flat assembler.

Index > OS Construction > x86 to C++

Author
Thread Post new topic Reply to topic
connor



Joined: 07 Jun 2016
Posts: 79
connor 21 May 2020, 02:58
What is an uncomplicated way of translating x86 assembly language into C or C++?

Im trying to convert the source code of Concurrent CP/M, into something more conventional.


Description: cp/m-86 1.0

no hard drive support;

took me ages to find & make work right.

Download
Filename: CPM86 10 no hard drive.zip
Filesize: 268 KB
Downloaded: 797 Time(s)


_________________
cars tech weed bitches country & thug life
Post 21 May 2020, 02:58
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 23 May 2020, 13:32
Wrapping everything into __asm {} blocks and carefully setting up the compiler? But why? General purpose compiler is not a good way to compile certain parts of an OS. Why not Java then? It seems to be quite conventional as well.
Post 23 May 2020, 13:32
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 23 May 2020, 14:59
In the second issue of Paged Out! magazine there is an interesting article (which I mentioned here) that shows an example of [mostly] automatic conversion of an assembly project to C. But the sources of that project used some high level constructs to begin with. Conversion of a code that is structured with jumps would be more tricky.
Post 23 May 2020, 14:59
View user's profile Send private message Visit poster's website Reply with quote
Moonchild



Joined: 07 Jan 2021
Posts: 1
Moonchild 07 Jan 2021, 06:38
A paper on this was just recently published
Post 07 Jan 2021, 06:38
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.