09-29-2007
You could do. Except that normally non-trival C programs are more than one source file.
You could write a C interpretor, but there is no real demand for them. The advantages you get from using C are mainly because it's a compiled language.
I rarely call my programs a.out, it would get far too confusing trying to remember which one did what.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am newbie in unix and just started learning it. I want to know what is the difference between an executable file and a file (say text file). How to create executable file? What is the extension for that? How to differentiate ? How does it get executed?
Thanks (1 Reply)
Discussion started by: Balaji
1 Replies
2. Programming
Hi,
I am trying to run simple client server c program in unix.At the compling stage server is creating an executable but the client is not.
below is the link to the source codes:
http://www.cs.rpi.edu/courses/sysprog/sockets/server.c
http://www.cs.rpi.edu/courses/sysprog/sockets/client.c
... (2 Replies)
Discussion started by: konas
2 Replies
3. Shell Programming and Scripting
Hi everybody:
I have strange problem. I have compiled a source code and created an executable file. This file I can use it into my PC, but when I copy this executable to my laptop this one doesn't work and the system tell me:
bash: ./sbdart_unix: cannot execute binary file
Somebody can... (3 Replies)
Discussion started by: tonet
3 Replies
4. OS X (Apple)
I've seen the executable open in the application OmniOutliner, can I create an executable with this app? I'd like to be able to create the unix executable and insert it into terminal, but I'm not sure if the Omni app will allow me to create it.
Any one have any ideas or possibly familiar with... (10 Replies)
Discussion started by: unimachead
10 Replies
5. UNIX for Advanced & Expert Users
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies
6. Shell Programming and Scripting
Hi,
I want to know that how can i read the content of a .exe file??
Thanks (1 Reply)
Discussion started by: ss_ss
1 Replies
7. Programming
Hi all,
I have modified a C file and executed it. While executing the executable file for that C file, it shows à is cannot be printed.
I have given isprint(à) to test it. When I copy the old executable file and execute it it shows it can be printed.
Then I retain the C code back and executed it... (1 Reply)
Discussion started by: sivakumar.rj
1 Replies
8. UNIX Desktop Questions & Answers
Hi Friends,
I have a shell script which does some operations etc, would it be possible to create an executable file out from this shell script? meaning the executable file is not editable, thus the source code will not be visible to other users for copyright reasons.
Please help, thanks! (1 Reply)
Discussion started by: kokoro
1 Replies
9. Shell Programming and Scripting
Hi group,
I am very beginner in shell scripting and self learning.
I am trying to create and executable script to run awk from user defined variables.
e.g. suppose from a given file I want to delete some rows or some columns
We need to repeat this process for many files. Thus I was... (4 Replies)
Discussion started by: smitra
4 Replies
10. OS X (Apple)
Hi all...
Had an idea tonight which could really enhance shell scripting for me.
Yes I am aware there could be difficulties but......
Creating a C script inside the shell script to do a task, (a simple text print to stdout in
this example), compiling it on the fly, making sure it is... (4 Replies)
Discussion started by: wisecracker
4 Replies
LEARN ABOUT DEBIAN
gtk2::gdk::keysyms
build::Keysyms(3pm) User Contributed Perl Documentation build::Keysyms(3pm)
NAME
Gtk2::Gdk::Keysyms - key codes for Gtk2 programs
SYNOPSIS
use Gtk2;
use Gtk2::Gdk::Keysyms;
#
# the most common use is for deciphering keycodes in key events,
# like this:
#
sub key_press_handler {
my ($widget, $event) = @_;
if ($event->keyval == $Gtk2::Gdk::Keysyms{Escape}) {
abort_whatever ();
return 1;
}
elsif ($event->keyval == $Gtk2::Gdk::Keysyms{F1}) {
do_help_thing ();
return 1;
}
elsif ($event->keyval == $Gtk2::Gdk::Keysyms{KP_Enter}) {
execute_selected_text_as_command ();
return 1;
}
# we didn't handle it, pass it on...
return 0;
}
DESCRIPTION
Gdk defines symbolic names for the codes associated with each key on a keyboard, so that you don't go nuts with numeric values in your
programs. The hash %Gtk2::Gdk::Keysyms holds all those keycodes, indexed by the name, for use in your perl programs when you need to do
custom key handling. This commonly occurs when you want to bind an action to a key that isn't usable as an accelerator, or when you don't
have accelerators, or if you're trying to write an easter egg, or whatever.
As the list of keycodes is quite large and rather rarely used in application code, we've put it in a separately-loaded module to save
space. As an alternative, you might want to investigate "Gtk2::Gdk->keyval_from_name" which offers basically the same functionality as the
hash.
To get a list of all available keys, either dump %Gtk2::Gdk::Keysyms, or look at the source of this module with "perldoc -m
Gtk2::Gdk::Keysyms".
AUTHOR
This module was automatically generated by a very simple perl script from gdk/gdkkeysyms.h. Programs that write programs are the happiest
programs of all.
COPYRIGHT
Copyright (C) 2003, 2009 by the gtk2-perl team (see the file AUTHORS for the full list)
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
SEE ALSO
perl, Gtk2, Gtk2::Gdk
perl v5.14.2 2012-05-27 build::Keysyms(3pm)