• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

portability issues

What are the issues of portability on Unix and NT?
 I want to make a my code portable on Unix as well as windows platform.
0
aeigo
Asked:
aeigo
  • 3
  • 3
  • 2
1 Solution
 
jlmsCommented:
None, you can write code in UNIX and just recompile it in NT and it will run immediately and viceversa.
0
 
aeigoAuthor Commented:
one line answer
0
 
jlmsCommented:
Well, what did you expect for 0 points???
0
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!

 
aeigoAuthor Commented:
Actually i didnt had any points I lost all in my first question
0
 
jlmsCommented:
Now about portability, well they are the obvious things:

The GUI is different, so you should isolate in different functions the routines to handle the user interface from whatever your program does.

The calls to the OS should be kept at a minimum, and when needed you have to isolate them, so you can include the adequate one.

Any possible hardware dependant functions should be treated similarly.

Be careful with the lenght of the word (32 bits? 64 bits?).


0
 
braveheartCommented:
I could write a book on this topic.

Before we can help you, you will have to give us some details of the type of applications you are thinking of porting:

Which language(s) are you using?
Is it a single program or a complex system of intercommunicating modules?
Does it consist of lots of different components written in different languages or integrating lots of different tools?
Do you use a GUI?
Do you use an RDBMS?
Client/server architecture?
Will it have to run in a heterogeneous (mixed NT/UNIX) network?
Is it a single program or are their lots of communicating modules?
Is it single or multi-user?
Do you have any porting tools available?
Do you have any emulation libraries?
What platforms does your application(s) currently run on?
What platforms do you wish to port it to?
Do you have lots of money to spend?
Do you have lots of porting experience in house?

Well, those will do for starters.
0
 
aeigoAuthor Commented:
to
braveheart
I could write a book on this topic.

Here is some Information

language(s) used is  c++
Its a complex system of intercommunicating modules
Do you use a GUI?  No gui


Client/server architecture?  yes

Will it have to run in a heterogeneous (mixed NT/UNIX) network?
yes It has to run on Heterogenous Network.
Is it a single program or are their lots of communicating modules? Lots of communicating module
Is it single or multi-user?  Multiuser.
we are not porting previously built code. deeloping portable code
but we are developing a portable code.
Do you have any emulation libraries? no.
Do you have lots of money to spend? no .
Do you have lots of porting experience in house?no experience.


0
 
braveheartCommented:
When designing an application that has to be portable between NT and UNIX, probably the most important consideration is the availability of equivalent libraries on both platforms. This is particularly true in the communications area.

Having no GUI makes porting easier as I presume that any communication with a user/controller will be via a text-only interface which will require very little massaging.

However, all your communication stuff is likely to be non-portable. You might like to look at the remote procedure call and external data representation functions on UNIX (man rpc, man xdr), assuming that there is an equivalent library available on NT (you may have to search the public domain for this). Note that these are not trivial to use but they will simplify problems of different sizes or byte order (endian-ness) of different data types on different machines.

If you are using raw TCP there may be libraries to help you. Perhaps GNU have something appropriate.

If you communicate by, or store information in files perhaps your network has shared disks, using "samba" or "PC-NFS" or something similar.  Is file locking between different processes or users an issue?

Your application sounds quite complex for people with no porting experience to tackle, especially if you have no money. Let's hope you have lots of time.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now