LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2004, 12:28 PM   #1
mac48bit
LQ Newbie
 
Registered: Mar 2004
Distribution: PCQLinux2004
Posts: 1

Rep: Reputation: 0
Feasibility of a compiler for shell scripts (BASH)


hello friends!

What are the feasibility options for a shell-script compiler. ie,

shell-script -----> special compiler -------> executable [or binary]

Imagine what a performance boost these compiled-shell-scripts can get to Linux.

so! what are the options? what all should be considered befre starting such a project? How much boost can a compiled binary give as compared to interpreted script? Has any attempt been already done for this (i got nothing from googling )

any ideas! suggestions! flames! all welcomed...

maku
 
Old 08-16-2004, 12:36 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Ummmm, why? Quite often all a shell script does is call various other programs and do a little processing (sorting of filenames perhaps). The majority of scripts I write are just a means to run a series of other programs on a whole load of files.
 
Old 08-16-2004, 08:07 PM   #3
tim1235
Member
 
Registered: Aug 2004
Location: Melbourne, Australia
Distribution: fc5/Gentoo
Posts: 57

Rep: Reputation: 15
I agree with Komakino. A BASH script is a simple program that makes use of already compiled programs. So I would think the effects of having a script converted to binary would be negligable. Maybe you are thinking more of compiling an interpreted language such as Perl or Phython? The benifits here would be a faster program but at the cost of reduced flexability.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash scripts hoffmanyew Programming 3 08-11-2005 02:27 AM
Scripts failing with #!/bin/bash or other shell on first line rdfoerster Fedora 6 11-16-2004 08:46 PM
Bash Shell Scripting *Integrate two scripts* Soulful93 Programming 1 04-29-2004 06:07 PM
bash shell scripts brisbois Linux - Newbie 3 02-17-2004 10:21 AM
Bash Shell Scripts Anthony Programming 2 03-29-2002 05:29 AM


All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration