Find Jobs
Hire Freelancers

Code generation for a parser in minic language

$25-30 USD

クローズ
投稿日: 16年近く前

$25-30 USD

完了時にお支払い
The project consist in extending a parser for miniC, from a lex and yacc file given by me, with intermediate code generation using the three address instruction. **Example:** For a function/procedure call p(x1,x2,…,xn) you should generate code of the form: *param x1 param x2 . . . param xn call p,n* **For:** int A[10]; int main(){ int i; int max; int sum; i=0; sum = 0; while(i < 10){ max = findMax(i); A[i] = max; Sum = sum + max; i = i + 1; } print_int(sum); } **Should generate:** main: i = 0 sum = 0 L1: if i < 10 goto L2 goto L3 L2: putparam i max = call findMax, 1 A[i] = max t1 = sum + max sum = t1 t2 = i + 1 i = t2 goto L1 L3: putparam sum call The output is validated by using the three-address instruction simulator also given. - Yacc and Lex tools. The project should pass in the tests given.
プロジェクト ID: 3014953

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 16年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に1人のフリーランサーが、平均$26 USDで入札しています
ユーザーアバター
See private message.
$25.50 USD 3日以内
4.7 (42 レビュー)
5.8
5.8

クライアントについて

PORTUGALのフラグ
Portugal
0.0
0
メンバー登録日:6月 26, 2008

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。