2009-02-12 05:16:08 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								USING:  help.markup  help.syntax  io  io.files  io.pathnames  strings  ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								IN:  bootstrap.image 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "bootstrap.image"  "Bootstrapping new images" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"A new image can be built from source; this is known as "  { $emphasis "bootstrap"  } ". Bootstrap is a two-step process. The first stage is the creation of a bootstrap image from a running Factor instance:" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsections make-image }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								"The second bootstrapping stage is initiated by running the resulting bootstrap image:" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $code "./factor -i=boot.x86.32.image"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"This stage loads additional code, compiles all words, and dumps a final "  { $snippet "factor.image"  } "." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The bootstrap process can be customized with command-line switches." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $see-also "runtime-cli-args"  "bootstrap-cli-args"  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ABOUT: "bootstrap.image" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  make-image 
							 
						 
					
						
							
								
									
										
										
										
											2009-02-12 05:16:08 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "arch"  string  } }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Creates a bootstrap image from sources, where "  { $snippet "architecture"  } " is one of the following:" 
							 
						 
					
						
							
								
									
										
										
										
											2011-09-18 21:25:06 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $code "x86.32"  "unix-x86.64"  "windows-x86.64"  "macosx-ppc"  "linux-ppc"  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								"The new image file is written to the "  { $link resource-path } " and is named "  { $snippet "boot."  { $emphasis "architecture"  } ".image"  } "."  } ;