Solved

Migrating the C program from Unix to Win NT 4.0 !

Posted on 1998-03-18
7
208 Views
Last Modified: 2011-09-20
programms : Borland C++ 5.0
source codes are written in C.

questions :
(1) Is there any GOOD Computing Book on migrating the Unix C programm to Win NT ?
(2) What are the precautions I have to take note off as this program(IN Unix) does serial and parallel ( low level interfacing) communications ?(how should i do it in WIN NT 4.0?)

points given : (1) 25
               (2) 50
 
0
Comment
Question by:jtliew
7 Comments
 
LVL 3

Expert Comment

by:rmichels
ID: 1257751
You may want to post this question in the Windows topic instead of here in C
0
 
LVL 5

Expert Comment

by:yonat
ID: 1257752
Take a look at the Unix to NT porting FAQ: http://www.nentug.org/unix-to-nt/
0
 
LVL 4

Expert Comment

by:emmons
ID: 1257753
It will depend a lot on the program. Graphics? Talking to hardware? Sockets? GUI? Threads?
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 1

Expert Comment

by:Nexial
ID: 1257754
There are at least a half dozen books and many articles on 'portable c'.   Do an web search and an amazon search to start with.

Some specific non obvious dependencies to watch for:
big endian/little endian byte alignment
direction of stack growth
Relative sizes of standard types and memory alignment of data
Dynamic memory coagulation and reuse after free
...
The first thing, though, is to make sure your sources completely pass the toughest lint tests you can find (i.e. Gimpel lint, ... and Unix lint), even if the programs are already working in your native environment.   This alone will save you hours-days of frustration.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1257755
It seems this is the right topic area indeed.
0
 

Author Comment

by:jtliew
ID: 1257756
Edited text of question
0
 
LVL 3

Accepted Solution

by:
braveheart earned 70 total points
ID: 1257757
All the above is good advice. Don't forget that there are several products on the market to simplify migration. We are developing on UNIX (4 flavours) and NT simultaneously, using Hummingbird Exceed, which consists of an X server and development kit. Last year we were using NuTcracker (also a server and XDK) but we found its socket support less than satisfactory - it couldn't support a data tablet with X.

Naturally, you will want to update your program to use native NT library calls sooner or later but products like Exceed and NuTcracker can make the transition easier.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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 use strings and some functions related to them in the C programming language.
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.

830 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