Solved

GCC for DOS / "Abort!"

Posted on 1998-05-02
5
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 20 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 switch statements in the C programming language.

717 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