gdump(1)

πŸ’– NAME πŸ’–

gdump β€” bestie, this one dumps the contents of a source graph as a source code. like, it literally hands you back C code. no cap.

ok so quick vibe check before we dive in: this is from the Scotch user's manual, and the page you're reading is gdump(1). manifesting that you read the whole thing πŸ’…


✨ SYNOPSIS ✨

gdump [options] [igfile] [ocfile]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” the gdump program lets you create a source code that's equivalent to the loading of a centralized source graph. the contents of that source graph get represented as data arrays, and those arrays are assembled by calling the SCOTCH_graphBuild routine of the libScotch library.

it's giving "here's your graph, but as code you can compile." iconic behavior, honestly.


πŸŽ€ OPTIONS πŸŽ€

  • -bbase β€” sets the base value of the graph that the source code describes. yes bestie, the base. you pick it. πŸ‘‘
  • -h β€” displays some help. the classic "help me pls" button 🫢
  • -pprefix β€” sets the prefix that gets added to all array names and to the graph building function name. so like, everything gets a little name tag. cute.
  • -ssuffix β€” sets the suffix that gets added to all array names and to the graph building function name. matching set with the prefix, periodt πŸ’…
  • -V β€” displays program version and copyright. the receipts, basically 🧾

🌸 EXAMPLE 🌸

say you wanna create a source C file brol.c that corresponds to graph brol.grf, with the identifier and creation function name suffix _brol. the way you do that:

$ gdump -s_brol brol.grf brol.c

slay. look at that suffix doing its little job. πŸ¦‹


πŸ”₯ SEE ALSO πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Francois Pellegrini <francois.pellegrini@labri.fr>


and that's the whole page, bestie!! 🫢 this was the gdump(1) page from the Scotch user's manual, dated 23 November 2019 β€” tysm for reading, go dump some graphs, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from