Jun 24 2004, 03:28 AM
Post
#1
|
|
|
Group: Members Posts: 188 Joined: 1-February 04 Member No.: 1,647 |
Hi,
How hard would it be to compile a single C file to an executable that runs on the Z ? This is a console-mode Linux app that has no user interface (sort of a combined Weblog + http server) and uses flat files for storage, no dependencies. It's quite portable as it runs on almost any Linux/unix and Windows too. It is just one C file. What's the simplest way to try this on the Z ? is a cross-platform tool chain really necessary, or can it be done on the Z itself (a C760) ? Thanks for any tips ; just in case it matters, below is the list of includes in the source for the Unix/Linux platforms : #include <stdio.h> #include <sys/types.h> #include <fcntl.h> #include <stdarg.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <locale.h> #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <signal.h> #include <time.h> #include <dirent.h> #include <errno.h> #include <ctype.h> #include <pwd.h> #include <grp.h> |
|
|
|
fpp Simplest way to an executable ? Jun 24 2004, 03:28 AM
lardman You could download a cross-toolchain but it seems ... Jun 24 2004, 04:38 AM
Stubear You can compile it on the Z if you install zgcc on... Jun 24 2004, 04:59 AM
fpp QUOTE(Stubear @ Jun 24 2004, 04:59 AM)You can... Jun 24 2004, 06:22 AM
tumnus What about the Handhelds.org Dev Cluster?
http://... Jun 24 2004, 07:51 AM
lardman QUOTEWhat about the Handhelds.org Dev Cluster?
La... Jun 24 2004, 07:55 AM
fpp QUOTE(tumnus @ Jun 24 2004, 07:51 AM)What abo... Jun 24 2004, 08:29 AM
fpp QUOTE(lardman @ Jun 24 2004, 07:55 AM)QUOTE W... Jun 24 2004, 08:31 AM
Stubear Okay, I've downloaded and compiled the source ... Jun 24 2004, 08:32 AM
fpp QUOTE(Stubear @ Jun 24 2004, 08:32 AM)Okay, I... Jun 24 2004, 09:07 AM
fpp QUOTE(fpp @ Jun 24 2004, 08:29 AM)QUOTE(tumnu... Jun 24 2004, 02:01 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 04:06 PM |