[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

GCC for DOS / "Abort!"

Posted on 1998-05-02
5
Medium Priority
?
302 Views
Last Modified: 2010-04-15
Hello,

I tried to port a Linux C program to DOS. When compiling with GCC, everything seems to work ok, but after some second it just says "Abort!". Do you have an explanation for this?

If you need to look at the script, it's located at ourworld.compuserve.com/homepages/Christian_Wenz/test.c - the C library function strtod using assembler.
0
Comment
Question by:Christian_Wenz
5 Comments
 
LVL 4

Expert Comment

by:emmons
ID: 1256848
First off, this is an assembly program embedded in a C file.

Can you give a better idea of where it fails and what the register values are when it does?
0
 
LVL 4

Expert Comment

by:emmons
ID: 1256849
First off, this is an assembly program embedded in a C file.

Can you give a better idea of where it fails and what the register values are when it does?
0
 
LVL 5

Author Comment

by:Christian_Wenz
ID: 1256850
I have no idea if it fails when running, as I get this "Abort!" message during compilation.
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1256851
Have you tried turning on all warnings to their highest levels?  That might give you a bit more information on what the problem might be.

-=- James.
0
 

Accepted Solution

by:
gavriep earned 40 total points
ID: 1256852
Linux and DOS use a different syntax of inline assembler. That's the reason you get the "Abort".

You asked for an explanation, so this is submitted as an answer.

As to the solution -- I can't be specific, but you need to change the format of the inline ASM. See the DJGPP docs!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question