LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 11:28 AM   #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, 11:36 AM   #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, 07: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



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 01:27 AM
Scripts failing with #!/bin/bash or other shell on first line rdfoerster Fedora 6 11-16-2004 07:46 PM
Bash Shell Scripting *Integrate two scripts* Soulful93 Programming 1 04-29-2004 05:07 PM
bash shell scripts brisbois Linux - Newbie 3 02-17-2004 09:21 AM
Bash Shell Scripts Anthony Programming 2 03-29-2002 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:05 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
Open Source Consulting | Domain Registration