Skip to content

Commit 5182c48

Browse files
doc: update README.md and README_JP.md (#806)
1 parent 303a3b3 commit 5182c48

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,21 @@ Run.
166166
java [PROGRAM-ID]
167167
```
168168

169+
> **Tip:** When compiling multiple COBOL source files, pass all files to a single `cobj` invocation instead of invoking `cobj` separately for each file. This can significantly reduce the total compilation time.
170+
>
171+
> ```bash
172+
> # Recommended: compile all files at once
173+
> cobj file1.cbl file2.cbl file3.cbl
174+
>
175+
> # You can also use wildcards
176+
> cobj *.cbl
177+
>
178+
> # Not recommended: compile each file separately
179+
> cobj file1.cbl
180+
> cobj file2.cbl
181+
> cobj file3.cbl
182+
> ```
183+
169184
## Documentation
170185
171186
* [The API reference of the runtime library `libcobj.jar`](https://opensourcecobol.github.io/opensourcecobol4j/javadoc/libcobj/index.html)

README_JP.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,21 @@ cobj [COBOL source file]
155155
java [PROGRAM-ID]
156156
```
157157

158+
> **Tip:** 複数のCOBOLソースファイルをコンパイルする場合は、`cobj`をファイルごとに個別に呼び出すのではなく、すべてのファイルを一度の`cobj`呼び出しに渡すことを推奨します。これにより、合計のコンパイル時間を大幅に短縮できます。
159+
>
160+
> ```bash
161+
> # 推奨: すべてのファイルを一度にコンパイル
162+
> cobj file1.cbl file2.cbl file3.cbl
163+
>
164+
> # ワイルドカードも使用可能
165+
> cobj *.cbl
166+
>
167+
> # 非推奨: ファイルごとに個別にコンパイル
168+
> cobj file1.cbl
169+
> cobj file2.cbl
170+
> cobj file3.cbl
171+
> ```
172+
158173
## ドキュメント
159174
160175
* [ランタイムライブラリ`libcobj.jar`のAPIリファレンス](https://opensourcecobol.github.io/opensourcecobol4j/javadoc/libcobj/index.html)

0 commit comments

Comments
 (0)